Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with iTunes 12 #13

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 12 comments
Open

Doesn't work with iTunes 12 #13

GoogleCodeExporter opened this issue Aug 6, 2015 · 12 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Update iTunes


What version of the product are you using? On what operating system?
itunnel_mux_rev71
Windows 8.1


Please provide any additional information below.
[ERROR] Error 0x2 (2): 'No such file or directory'
[FATAL] Could not locate 'Apple Mobile Device Support' folder path in registry:
ABORTING

Original issue reported on code.google.com by Philipha...@gmail.com on 1 Feb 2015 at 8:14

@GoogleCodeExporter
Copy link
Author

facing same error on windows 7, x64, itunes version 12.1.0.71 - 64 bit version.

Original comment by sanjay.g...@gmail.com on 2 Feb 2015 at 10:28

@GoogleCodeExporter
Copy link
Author

I am facing the same issue the program flashes then exits. 

Windows 7, 64 bit, iTunes 12.1.0.1- 64 bit version. itunnel_mux_rev71 Iport 333 

Original comment by Jdc6...@gmail.com on 3 Feb 2015 at 2:43

@GoogleCodeExporter
Copy link
Author

Any news if this issue will be addressed?

Original comment by josh.slo...@gmail.com on 4 Feb 2015 at 7:25

@GoogleCodeExporter
Copy link
Author

Also experienced the same issue.

itunnel_mux_rev71
Windows 8.1

Appears that going back to http://filehippo.com/download_itunes_64/58981/ 
resolved this for me. I took a look at the registries and it appears that in 
12.1 they use

'HLKM/SYSTEM/CurrentControlSet/Services/Apple Mobile Device Service' in earlier 
versions but the new version is using...

'HLKM/SYSTEM/CurrentControlSet/Services/Apple Mobile Device'

If someone is using 12.1 and knows not to break things in RegEdit they can 
attempt to create a 'REG_EXPAND_SZ' record for 'ImagePath' with the value 
"C:\Program Files (x86)\Common Files\Apple\Mobile Device 
Support\AppleMobileDeviceService.exe" inside the 
HLKM/SYSTEM/CurrentControlSet/Services/Apple Mobile Device.

Original comment by ChrisCha...@gmail.com on 5 Feb 2015 at 1:50

@GoogleCodeExporter
Copy link
Author

^^ completely said that backwards... 

'HLKM/SYSTEM/CurrentControlSet/Services/Apple Mobile Device' old location
'HLKM/SYSTEM/CurrentControlSet/Services/Apple Mobile Device Service' new 
location

Original comment by ChrisCha...@gmail.com on 5 Feb 2015 at 1:51

@GoogleCodeExporter
Copy link
Author

this is the code that throws that error:

\itnl\win32_project\libMobiledevice\platform.cpp

line 62:

    cbBuf = sizeof(wbuf);
    error = rgv(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Apple Inc.\\Apple Mobile Device Support", L"InstallDir", RRF_RT_REG_SZ|RRF_ZEROONFAILURE, NULL, (LPBYTE)wbuf, &cbBuf);
    if (ERROR_SUCCESS != error) {
        print_error(error);
        Log(LOG_FATAL, "Could not locate 'Apple Mobile Device Support' folder path in registry: ABORTING");
        return LIBMD_ERR_REGISTRY_ERROR;
    }


the thing is that my machine has that entry ... and still throws the error...

Original comment by car...@towworks.com on 6 Feb 2015 at 9:15

@GoogleCodeExporter
Copy link
Author

If you watch the process, the registry key it's looking for is 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apple Inc.\Apple Mobile Device Support

iTunes 12 moves that registry key to

HKEY_LOCAL_MACHINE\SOFTWARE\Apple Inc.\Apple Mobile Device Support

Copying the registry key back to the original location results in a different 
error.

[ERROR] Error 0xC1 (193): 'Unknown error'
[FATAL] Could not load C:\Program Files\Common Files\Apple\Mobile Device 
Support\\iTunesMobileDevice.dll: ABORTING

It looks like they changed the dll, and it doesn't work with itunnel. :-)



Original comment by x24...@gmail.com on 9 Feb 2015 at 3:53

@GoogleCodeExporter
Copy link
Author

Is there a fix for this?

Original comment by nikhi...@gmail.com on 18 Feb 2015 at 9:08

@GoogleCodeExporter
Copy link
Author

I was able to get this working again in Win7 64bit with iTunes 12.1.1 as my 
main iTunes install. I took the Mobile Device Support folder from an install of 
iTunes 11.4 (located at C:\Program Files (x86)\Common Files\Apple\Mobile Device 
Support) and put it in a separate location. I then edited the registry like 
others have done, but pointed the InstallDir key in 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apple Inc.\Apple Mobile Device Support 
to the location that I put the old iTunes 11.4 Mobile Device Support folder. It 
now works like it did pre-iTunes 12.1. I am sure this will work with the Mobile 
Device Support folder from any version of iTunes before 12.1, I just had 11.4 
already installed on another machine.

Original comment by johneric...@gmail.com on 25 Mar 2015 at 5:07

@GoogleCodeExporter
Copy link
Author

Thank you John, copying the old files and registry key made it work perfectly.

Original comment by Rexxxo on 8 Apr 2015 at 6:22

@GoogleCodeExporter
Copy link
Author

thank you John. I copied 12.1.1 files and then update to 12.1.2 and change 
registry key. it works perfectly.  

Original comment by HaE...@gmail.com on 16 May 2015 at 12:27

@IceCubeDev
Copy link

My fair ladies and gents,

The issue is indeed related to the location of the key in the registry. In Windows 7 and higher there are two views of the registry: a 32bit version and a 64bit version. More information here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa384235%28v=vs.85%29.aspx

Apple moved their keys in the registry to comply with this, i.e the new location without the Wow6432Node part. The fix is simple:
https://gist.github.com/IceCubeDev/201012d90212f34c473c

Have a good one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants