I have packaged itunes 10.5 and have it installing fine with no problems other than the company i work for wants the itunes library to be stored locally rather than in the users Home drive. This makes sense as there is a cap on the size of a users homedrive and the itunes media library can get quite large.

I am installing itunes on both Windows XP and on Windows 7 and the default location on each of these is
Windows XP
C:\Documents and Settings\%usersname%\My Documents\My Music\iTunes\iTunes Media
Windows 7
H:\Documents\My Music\iTunes\iTunes Media

I would like these locations to be c:\local\%username%\iTunes\iTunes Media on both OS's.

I have read a post in the Packages section by "Franks" about running a VBScript using Active Setup which copies a vanilla library file to the location created above.
However, this still requires user intervention in that the user needs to press the Shift key while running itunes and selecting the new library location.

I would like this to be completely automated to remove the possible user error.

Anyone had to do something similar? Please help....
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Hi Mark,

The only fully automated workaround I'm aware of, is to redirect the "My Music" folder back to the C: Drive.
Answered 10/19/2011 by: Matias M Andersen
Senior Yellow Belt

Please log in to comment
You could use ACT to create a SHIM. Run the Compatibility Administrator and create a New Fix. The SHIM you're looking for is CorrectFilePaths

The parameters you're looking for are going to be something like:

"<redirected path>";"<localpath>"

in 10.4 this was:
\\server\share\JohnSmith\AppData\Roaming\Apple Computer\Itunes;c:\Users\JohnSmith\AppData\Roaming\Apple Computer\Itunes

So I'm guessing fromw what you've said it's now:
....My Music\iTunes\iTunes Media


Of course, you don't want to do this for just one user... Read On.

While this works using certain varibles, it doesn't seem to work with %APPDATA%. %APPDATA% is renamed to "%userappdata% by Compatability Administrator, so don't fall into that trap.

Instead I've had to use \\<hardcoded server>\Users\%username%\etc;"%userprofile%\etc. If you're in a fairly open environment, you can even send the redirection to the all users profile.

You then need to add in all the executables (iTunes.exe and iTunesHelper.exe etc). To make this fix work next month when a new version is released, remove their file version information. And hopefully the month after that things will be fine too.
Answered 10/23/2011 by: DotMsi
Senior Yellow Belt

  • I'm trying to change the path for media library for itunes 10.6.1from c:\users\%username%\Music\iTunes\ to d:\Music\iTunes\.... I have edited the.xml file and copied the files to that location. Still i couldn't resolve the issue any ideas how to change the path... If you can let me know the the approach in detail it would be really great!!! I'm breaking my head since 3 days reading all the blogs nothing helped me.. Your help would be really Great...
    Thanks in Advance....
Please log in to comment
Answer this question or Comment on this question for clarity