Windows 7-updated, cant open cus error 7(windows error 5)

I have a hp with windows 7 on. I updated ITunes to the newest version the other week 12.0.1 and from then on haven't been able to open ITunes because the computer picks up a threat: virus found Win32/Heri in the file ITunes.dll and I get a error box with Error 7(windows error 5) how do I fix this?

Windows 7, Itunes 12.0.1

Posted on Nov 17, 2014 10:11 AM

Reply
19 replies

Dec 10, 2014 11:30 AM in response to turingtest2

I have same issue. Windows 7 x64.


I just had a huge google session trying to find a solution but nothing helps.



I tried:


- To reinstall iTunes following official Apple instructions

- To repair .NET

- To repair all Apple products

- To mess with user rights (Run as Admin whatever)

- To remove the KB2918614 Windows update as recommended

- To remove all securities like firewalls and antivirus programs.


So now I have no installed antivirus or firewall or whatever, actually the system is clean. But still receiving the error.


So, is there anybody who could clean up the situation with some kind of debug info? As i know, the Windows error 5 is some kind of permissions error. I cannot find any log neither in Administration-Events place nor anywhere else.


Like anybody else, i think, I do not want to reinstall the whole system because of this bug and i very interested in solution.

Dec 10, 2014 11:46 AM in response to jumash

I'm presuming you've probably seen these already, but just in case.



Take a look at iTunes for Windows: "Error 7" message when opening iTunes. (Though I see you've already tried repairing the .NET Framework.)


For general advice see Troubleshooting issues with iTunes for Windows updates.


The steps in the second box are a guide to removing everything related to iTunes (similar to those above) and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.


Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.


tt2

Dec 10, 2014 10:14 PM in response to turingtest2

Thank you for copy-pasting the text i saw many times while googling, but i clearly wrote that that didn't help me. But as for your try to help:


1. First link is definitely wrong because of Windows 7 has 4.5 .NET (the link provides only 4.0 one) - but as i wrote, i tried to

  • Totally reinstall .NET (and i think it's unnecessary because as i already wrote, error 5 (windows) is about permissions, not for broken components.
  • Tried to repair .NET

In my case the .NET version is 4.5, the 4.0 one cannot be installed on W7.


2. Second link has no word about exactly error 5, it contains a scope of another errors and an instruction for totally removing Apple* products.


I'm not that stupid "did-you-try-to-plug-the-cable-try-to-reboot" one, i have a real error and before of writing here tried all that i found at google.


I see only the one method to fix it - it is to reinstall the whole OS. I think the problem appeared after one of Windows updates, but i determined that iTunes is not starting too late for to rolling back to rescue points. (BTW, iCloud works fine, and i see iTunes Helper started at the process list)


I double-checked the permissions - see, NOTHING changed (except Windows updates) from the point where (old) iTunes worked well and (new) iTunes was broken after updating it from the Update tool.


Now, i repeat, i tried to do all the found things - really clean reinstall - Apple ones, and .NET ones, i even tried to delete files as in the second box recommendations.


So now i would like to have a chance here appears a 7ru3 h@x0r to clarify the situation with a real working repair method or an Apple guy with explanations why Apple products 're so buggy after Jobs left the company (i also have some problems with Yosemite on my Mini - but it is another story 🙂 )


I see really a lot of similar topics and all of them have no clear and definitely correct decision of the problem - someone fix this with just reinstall, the others (including me) resume face it 😟

Dec 11, 2014 8:56 AM in response to jumash

If I had a guaranteed remedy for you I would have posted it already. Unfortunately I haven't seen enough cases of this error to get a handle on what really works reliably every time so the best I can do is offer some more ideas of things you can try. Hopefully one of them is something you haven't seen already.


Do I take it that iTunes appears to have installed correctly and this error occurs when you try to run iTunes?

Have you tried running iTunes from a different user account that has administrator rights?

Have you tried running iTunes in iTunes Safe Mode which you get to by holding down shift+ctrl as you launch iTunes?

Any chance you could post the full text of the error message, or better still a screenshot?



You could try checking the logs in the Event Viewer. Start > Search progams and files > Eventvwr - but I've no idea what you're supposed to be looking for.



You say you have removed the various components, cleaned the installation folders and, and reinstalled. Other places where iTunes stores files that probably won't have been touched so far are:

  • \ProgramData\Apple
  • \ProgramData\Apple Computer
  • \Users\<User>\AppData\Local\Apple
  • \Users\<User>\AppData\Local\Apple Computer
  • \Users\<User>\AppData\LocalLow\Apple Computer
  • \Users\<User>\AppData\Roaming\Apple Computer


It could be an issue overwriting any file or folder in one of those locations. You could try archiving the folders and then removing them, or particular subfolders, one at a time to see if you can isolate which causes the problem. iTunes should be able to rebuild those that it needs to function as it would do on the initial installation. Your general iTunes preferences are stored in one location, and any iOS device backups in another, so you may need to be a bit selective in what you delete and/or be prepared to rebuild that data.




If there is a chance that iTunes hasn't installed correctly you could tear it down again and try the section Install missing components from the user tip which has advice on breaking down the iTunes installer into its components. You could try installing each of these with the assistance of The Microsoft Program Install and Uninstall Utility (aka MS Installer "Fixit"). This might drive through each package properly and repair any permissions on objects that the software tries to access.




Or you could try logging the installation of each component to see if you can spot any errors that you can correct.


Take the unpacked components of the iTunesSetup.exe or iTunesSetup64.exe file and move them to the root of drive C:. Try installing them individually in alphabetical order (don't try to install SetupAdmin.exe which drives the original installer).


msiexec /i C:\AppleApplicationSupport.msi /l*v C:\Log_AAS.txt

msiexec /i C:\AppleMobileDeviceSupport.msi /l*v C:\Log_AMDS.txt

msiexec /i C:\AppleMobileDeviceSupport64.msi /l*v C:\Log_AMDS64.txt

msiexec /i C:\AppleSoftwareUpdate.msi /l*v C:\Log_ASU.txt

msiexec /i C:\Bonjour.msi /l*v C:\Log_Bonjour.txt

msiexec /i C:\Bonjour64.msi /l*v C:\Log_Bonjour64.txt

msiexec /i C:\iTunes.msi /l*v C:\Log_iTunes.txt

msiexec /i C:\iTunes64.msi /l*v C:\Log_iTunes64.txt


You can triple-click a line to select all of it, then press Ctrl+C to copy, switch to the command box and click the icon at the top left of the window to access the paste menu. Which components you have depends on whether you've unpacked the 32-bit or the 64-bit installer.


The log files might provide further clues as to what is going wrong. I suggest using Notepad++ to review the logs. Look for words like "failed" in the log.



tt2

Dec 11, 2014 9:33 AM in response to turingtest2

It's a real pleasure to see the really detailed human answer, thank you for work!


Let's see..


Do I take it that iTunes appears to have installed correctly and this error occurs when you try to run iTunes?

Yes, the previos non-red one iTunes (i dont remember the previous version, that was before iOS8 released) worked fine as well, and after the update through Apple Software Update i received the error.


Have you tried running iTunes from a different user account that has administrator rights?

Nope, i didn't tried, but now i created a non-privileged user and got the same error.


Have you tried running iTunes in iTunes Safe Mode which you get to by holding down shift+ctrl as you launch iTunes?

Wow, i didn't even knew about that thing, great! I holded down shift+ctrl, double-clicked the icon - nothing, same error


Any chance you could post the full text of the error message, or better still a screenshot?

Trust me, the "iTunes was not installed correctly. Please reinstall iTunes (next line) Error 7 (Windows error 5)" is the fullest text of the error:)


You could try checking the logs in the Event Viewer. Start > Search progams and files > Eventvwr - but I've no idea what you're supposed to be looking for.

Correct, i found nothing there.


If there is a chance that iTunes hasn't installed correctly you could tear it down again

As i see at the Programs and Components, there're all of iTunes components as listed.


As for the rest of the message - give me some time i could try the logged install and i will return with results! Thank you a log once again!


Now i'm going to try the


  1. Removing the AppData folders as well and make a new clean uninstall-install
  2. If it would not help, i will try to make a logged installation and will attach the logs with comments!


You can triple-click a line to select all of it

btw i just tried to do this at Safari in Yosemite - it's not working 🙂 Need to submit a feature request 😀

Dec 11, 2014 10:23 AM in response to turingtest2

Okay, just finished. Spoiler: nothing.


I cannot understand the source of problem. All looks fine except one thing below.


BTW I found some iTunes parts at the Program Files and deleted them (by default the x64 installer tries no install into Program Files x86, huh), i tried to install iTunes into the Program Files folder - nothing.


The logs: https://yadi.sk/d/pZlsoNJWdK9jq (Katerina is my wife and i'm actually trying to fix her issue)

The most interesting things from logs below:


iTunes log:

Line 6135: MSI (s) (78:80) [20:57:55:313]: SECREPAIR: Failed to open the file:C:\Program Files\iPod\bin\iPodService.exe for computing its hash. Error:3
Line 6136: MSI (s) (78:80) [20:57:55:313]: SECUREREPAIR: Failed to CreateContentHash of the file: Program Files\iPod\bin\iPodService.exe: for computing its hash. Error: 3
Line 6137: MSI (s) (78:80) [20:57:55:313]: SECREPAIR: Failed to open the file:C:\Program for computing its hash. Error:2
Line 6138: MSI (s) (78:80) [20:57:55:313]: SECUREREPAIR: Failed to CreateContentHash of the file: Program: for computing its hash. Error: 2
Line 6139: MSI (s) (78:80) [20:57:55:313]: SECREPAIR: Failed to open the file:C:\Program for computing its hash. Error:2
Line 6140: MSI (s) (78:80) [20:57:55:313]: SECUREREPAIR: Failed to CreateContentHash of the file: Program: for computing its hash. Error: 2


Line 39895: CustomAction iTunes_RegServer returned actual error code 1 but will be translated to success due to continue marking


Log_AAS.log:

MSI (s) (78:5C) [20:53:46:021]: WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.resources\pt_PT.lproj\Error.strings' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0).

MSI (s) (78:5C) [20:53:46:021]: Executing op: ComponentRegister(ComponentId={AEFD0026-D4F5-4EA4-82F6-63E97166308D},KeyPath=C: \Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.resources\ru.lproj\Error.strings,State=3,,Disk=1,SharedD llRefCount=0,BinaryType=0)

1: {83CAF0DE-8D3B-4C37-A631-2B8F16EC3031} 2: {AEFD0026-D4F5-4EA4-82F6-63E97166308D} 3: C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.resources\ru.lproj\Error.strings

^^^^

And that's really interesting because i see no files with such names there, but the folder permissions 're OK and there is a folder Apple at Common Files (i deleted it previosly, but it always returned)


Any comments?

Dec 11, 2014 10:35 AM in response to jumash

I don't have access to a Mac for testing so all the advice I'm giving here relates to troubleshooting Windows installation issues. Macs handle software installation completely differently as I'm sure you know. I suspect you'll need to be running a browser in your Windows session to copy the commands through to the command prompt, or type them out in long hand (BTW the bit in the middle of the commands is slash el star vee not slash one star vee).


Looking at the full text of the error I think it is safe to say iTunes isn't yet fully installed so I suspect the AppData & ProgramData locations may not be involved, or at least not yet. Logged installs or the MS Installer tool are probably going to offer the best hope.


Another idea I haven't mentioned yet is running the repair option on each component from the Programs & Features control panel. Could be worth a punt?


You could also try running iTunes directly from C:\Program Files\iTunes\iTunes.exe or C:\Program Files (x86)\iTunes\iTunes.exe in case the issue is related to the desktop/start menu shortcuts.

Ah... new data. iTunes for Windows is predominantly 32-bit code, but there are 64-bit segments for 64-bit machines and you must install using the 64-bit installer or the components from it. On 64-bit machines 32-bit code goes to Program Files (x86), 66-bit code goes to Program Files. On 32-bit machines it goes to Program Files.

tt2

Dec 11, 2014 10:42 AM in response to turingtest2

As for the triple-click - the behavior is the same at Safari & FF (Windows) - i just thought that the 3click would select ALL the lines quoted, not the only one, sorry 🙂



Another idea I haven't mentioned yet is running the repair option on each component from the Programs & Features control panel.

I tried it at the early first steps - that didn't help


Also running iTunes directly from folder gives no effect.


I installed iTunes to the notebook (W8 works great with it), but now i'm hardly want to clarify the error reason. Challenge accepted.


Now i'm going to do the Super Real Clean Install as i name it


- Uninstall all the components from the Programs & Components

- Delete all the folders

- Manually search for folders with name Apple/iTunes/iPod/iCloud

- Search the registry for Apple threads and totally remove them.

- Totally reinstall .NET Framework 4.5

- Reboot

- Install all the things again



Will be back with results.

Dec 11, 2014 11:03 AM in response to jumash

So let us focus on this error:

Line 6135: MSI (s) (78:80) [20:57:55:313]: SECREPAIR: Failed to open the file:C:\Program Files\iPod\bin\iPodService.exe for computing its hash. Error:3

Right-click on the iPod folder, then Properties > Security > Advanced > Change Permissions should show a similar dialog box. Replace Permissions should ensure the correct permissions are set for all files & folders in this branch.

User uploaded file


Similar permissions fixes could be applied to any of the other folders that iTunes or components will install to. Once done try repairing that component, e.g. repairing iTunes should create the missing iPodService.exe file.

tt2

Dec 11, 2014 11:45 AM in response to turingtest2

Found a localization bug - the AppleSoftwareUpdate.msi package has wrong codepage for Agreement (Russian Cyrillic case).


Superclean install didn't help me too. I totally destroyed all the Apple/iTunes/iCloud paths and hides, reinstalled .NET but nothing.. still have error 5.


Here're new fresh logs - https://yadi.sk/d/HAqUhPYldKEyk



As for permissions - there already was file iPodService.exe (in the bin folder).


But I tried to do as you said (and more - i did that thing with all Apple folders i found in Program Files, Common Files and x86) and than to recover iTunes - no effect. Hope you trust me by word - i'm not kidding 🙂


Any more ideas?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Windows 7-updated, cant open cus error 7(windows error 5)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.