/build/static/layout/Breadcrumb_cap_w.png

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 9.8k  |  Created: 01/24/2007

Average Rating: 0
iTunes has 38 inventory records, 33 Questions, 1 Blogs and 3 links. Please help add to this by sharing more!

Deployment Tips (14)

Most Common Setup Type
Not Determined
Average Package Difficulty Rating
Rated 4 / 5 (Somewhat Difficult) based on 1 ratings
Most Commonly Reported Deployment Method
Windows Installer with Custom Transform (MST)
118
Note
For iTunes 7.0, here's how to obtain the MSI files...

1. Obtain the .EXE file from www.apple.com/itunes
2. Navigate to the user's Temp folder (for example: C:\Documents and Settings\JoeUser\Local Settings\Temp) and clear out any existing folders in order to make things easier to locate in the next step.
3. Launch the downloaded iTunes .EXE installation, but do NOT install the program.
4. Copy the newly created XXXXX.TMP folder containing the extracted contents of the downloaded .EXE file to another location.
5. Cancel the iTunes installation setup.

Edit the MSI file using ORCA (http://support.microsoft.com/kb/255905/EN-US/).
1. Within the "CreateFolder" table delete the "iTunesProgramMenuFolder" row.
2. Within the "Shortcut" table delete the "iTunes" and the "AboutiTunes" rows.
3. Save the MSI file.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Command Line
Here's a small .VBS script that can be used with the iTunes .MSI files for a silent installation. I have to say that this software is really poorly set up so some of this might be a little odd, but it's what works without having the stupid Start menu and desktop icons show back up everytime a new users launches iTunes.

Just put everything into the same folder and this script should run just fine (copy the text below into a .TXT file, then simply change .TXT to .VBS). You'll need to create the shortcut files listed in the script as well - DON'T copy the ones from the Start menu as those are the ones that invoke the MSI installation for each user. Oh, and you should obtain the iTunesPrefs.xml files listed in the script from another machine - after configuring the desired iTunes settings.




Option Explicit
Dim WshShell, objFSO, SystemDrive

Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
SystemDrive = WshShell.ExpandEnvironmentStrings("%Systemdrive%")

' Installs QuickTime.
WshShell.Run "msiexec /i ""QuickTime.msi"" /qn", 1, True

' Removes the QuickTime taskbar icon.
WshShell.RegWrite "HKLM\SOFTWARE\Apple Computer, Inc.\QuickTime\ActiveX\QTTaskRunFlags", 2, "REG_DWORD"

' Uses TaskKill to remove the taskbar icon right away instead of waiting for a restart.
WshShell.Run "%COMSPEC% /C TASKKILL /F /IM qttask.exe", 0, False

' Installs iTunes.
WshShell.Run "msiexec /i ""iTunes.msi"" DESKTOP_SHORTCUTS=0 /qn", 1, True

' Removes the QuickTime upgrade query splash screen (grab the .QTP file from another system where the date has been set a few years into the future).
If objFSO.FileExists ("QuickTime.qtp") Then
objFSO.CopyFile "QuickTime.qtp", (SystemDrive & "\Documents and Settings\All Users\Application Data\Apple Computer\Quicktime\QuickTime.qtp"), True
End If

SetPreferenceFiles

If objFSO.FileExists (AllUsersProgramsPath & "\iTunes\iTunes.lnk") Then
objFSO.CopyFile (AllUsersProgramsPath & "\iTunes\iTunes.lnk"), (AllUsersProgramsPath & "\Accessories\Entertainment\iTunes.lnk"), True
objFSO.DeleteFolder (AllUsersProgramsPath & "\iTunes"), True
End If

If objFSO.FileExists (AllUsersDesktopPath & "\iTunes.lnk") Then
objFSO.DeleteFile (AllUsersDesktopPath & "\iTunes.lnk"), True
End If

' Copies a shortcut to iTunes to prevent the MSI installer from being invoked for each user - which generates the desktop and Start menu icons again.
If objFSO.FileExists ("iTunes.lnk") Then
objFSO.CopyFile ("iTunes.lnk"), (AllUsersProgramsPath & "\Accessories\Entertainment\iTunes.lnk"), True
End If

Wscript.Quit



' SUBROUTINES ARE SHOWN BELOW
Sub SetPreferenceFiles
' Sets the needed preference files, creating the folder structure if it does not already exist.
Dim Subfolder, UserPaths

On Error Resume Next

Set UserPaths = objFSO.GetFolder(SystemDrive & "\Documents and Settings\").Subfolders

For Each Subfolder in UserPaths
If Subfolder = (SystemDrive & "\Documents and Settings\LocalService") Then
' Does nothing.
Else
If Subfolder = (SystemDrive & "\Documents and Settings\NetworkService") Then
' Does nothing.
Else
If Subfolder = (SystemDrive & "\Documents and Settings\All Users") Then
' Does nothing.
Else
If Not objFSO.FolderExists (Subfolder & "\Local Settings\Application Data\Apple Computer") Then
objFSO.CreateFolder (Subfolder & "\Local Settings\Application Data\Apple Computer")
End If
If Not objFSO.FolderExists (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes") Then
objFSO.CreateFolder (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes")
End If

If Not objFSO.FolderExists (Subfolder & "\Application Data\Apple Computer") Then
objFSO.CreateFolder (Subfolder & "\Application Data\Apple Computer")
End If
If Not objFSO.FolderExists (Subfolder & "\Application Data\Apple Computer\iTunes") Then
objFSO.CreateFolder (Subfolder & "\Application Data\Apple Computer\iTunes")
End If

' This file accepts the license agreement.
If objFSO.FileExists ("iTunesPrefs1.xml") Then
If objFSO.FileExists (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes\iTunesPrefs.xml") Then
objFSO.CopyFile (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes\iTunesPrefs.xml"), (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes\OLDiTunesPrefs.xml"), True
End If
objFSO.CopyFile "iTunesPrefs1.xml", (Subfolder & "\Local Settings\Application Data\Apple Computer\iTunes\iTunesPrefs.xml"), True
End If

' This file contains the additional preference settings.
If objFSO.FileExists ("iTunesPrefs2.xml") Then
If objFSO.FileExists (Subfolder & "\Application Data\Apple Computer\iTunes\iTunesPrefs.xml") Then
objFSO.CopyFile (Subfolder & "\Application Data\Apple Computer\iTunes\iTunesPrefs.xml"), (Subfolder & "\Application Data\Apple Computer\iTunes\OLDiTunesPrefs.xml"), True
End If
objFSO.CopyFile "iTunesPrefs2.xml", (Subfolder & "\Application Data\Apple Computer\iTunes\iTunesPrefs.xml"), True
End If
End If
End If
End If
Next
End Sub
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note
this is how to install ONLY itunes and not Quicktime and other extraneous software that comes bundled. T prefer to use "quicktime alternative" (you will need QA v1.76 final or better for itunes to work).

first, extract the itunessetup.exe using winrar or equivalent. this will give you four msi files.

load up the itunes.msi file into ORCA or whatever MSI table editor you prefer. you can either edit the msi directly or create a transform file.
in the custom actions table, remove the entry "InstallPackages".
in the InstallUISequence table, remove the entry "InstallPackages"
save the msi or mst file and use this to install itunes.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Command Line
This script does work fairly well. However, there are 2 undefined variables. To define them, insert the following lines after the SystemDrive= line.

AllUsersProgramsPath = SystemDrive & "\Documents and Settings\All Users\Start Menu\Programs"
AllUsersDesktopPath = SystemDrive & "\Documents and Settings\All Users\Desktop"

Also, I noticed that this leaves the QuickTime folder in Programs and a QT shortcut on the desktop. These can be deleted by inserting the following lines before or after the corresponding iTunes lines:

If objFSO.FileExists (AllUsersProgramsPath & "\QuickTime\QuickTime Player.lnk") Then
objFSO.DeleteFolder (AllUsersProgramsPath & "\QuickTime"), True
End If

If objFSO.FileExists (AllUsersDesktopPath & "\QuickTime Player.lnk") Then
objFSO.DeleteFile (AllUsersDesktopPath & "\QuickTime Player.lnk"), True
End If

I also changed the final location of the iTunes shortcut to the Programs menu, but that is a matter of personal preference.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note
In 7.0.1 there is really no reason NOT to use their wrapper. It will pass any commandline you give it straight to the MSI.

Also be ware that Apple has in the past said that in order to use their site license (and a lot of use here are) you cannot extract the MSI's and run them. So, the only reason the ever extract the MSI's should be to make your transforms, once you make your transform, just call their EXE and pass TRANSFORMS= and that should be that.

So to get a default install of iTunes just run iTunesSetup.exe /qb! and it should complete just fine.

If you want to remove QuickTime from the install (i.e. for multiple version or asset tracking purposes) make your transform and search the custom actions table for "quicktime" you should easily pick up which actions kick off the install. Comment that action out and it will neither be installed nor complain about beign missing.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note
If the Client does not want its users to go through the post install menus, Apple does not put registry entries in the HKCU but puts a xml file.

It puts in the Application Data\Apple Computer\iTunes\iTunesPref.xml. You can add this in the files and folders and this will not prompt the users when they launch the app.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note
To expand on what fsubzwari said:

The preferences (whether you go directly to your library or the store, etc) is stored in \Documents and Settings\(user)\Application Data\Apple Computer\iTunes\iTunesPrefs.xml.

If you, like me, have a ton of machines (~2000, in my case), some users with a mandatory profile, and you don't want them to have to accept the license every single time they log in (since their profile will be erased when they log out, deleting any changes), you *also* need to include \Documents and Settings\Local Settings\Application Data\Apple Computer\iTunes\iTunesPrefs.xml.

Just run iTunes on a machine, configure how you wish, then move the two files into the mandatory profile (make sure you have the same directory structure in your mandatory profile or it won't work).
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note
I just packaged iTunes 7.3.2.6. At first I agreed with Balthazar about using their wrapper. Yes it will accept a command line with the transform etc. The problem comes when the application needs to be repaired. The repair process needs to 'see' the .msi file in its original location, not the wrapper that it came in. Their wrapper will extract the .msi files into the profile. Once the wrapper has finished, these .msi's are removed thus preventing proper repair functionality. The path to the .msi is stored in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%GUID%InstallSource=

I created a transform and added a custom action to copy the prefs files to the c:\Prog~1\iTunes folder (for staging) and I also did not want QT installing (it is already in our SOE) so I removed these custom actions:

CheckQTRebootNeeded
QuickTimePreInstallMSIProc
QuickTimeInstallFailed

This is all done in the transform, not in the vendor's .msi. I then created a script which copies the prefs files from the c:\Prog~1\iTunes folder to each user profile when they log on, using the run key in the reg.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note

Vista uses a new file structure so the VBScript to install iTunes should be modified. Any %SystemDrive%\Documents and Settings\%Username%\ in XP is now %SystemDrive%\Users\%Username%

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
117
Note

New iTunes 7.4.1 adds HKCU entries for Outlook Add-in. If you don't want the package to run a self heal on this feature move the HKCU items to the HKU\.DEFAULT hive. This will create the HKCU items for any new users that log onto the machine or that do not have the HKCU iTunes hive items in their profile.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
116
Note
Itunes 7.0.x Quicktime 7.1.x

In the new Itunessetup.exe Apple has developped everything with msi. When you launch the Itunessetup.exe, you will find the packages in [user-provile]\local setting\temp directory made of 3 letters is created. There you will find in it itunes.msi and Quicktime.msi

Well don't be so happy, if you incorporated them in a GPO you will see that the langage in use is chineese for the two msi. use Orca and look for [ITUNES_LANGID] and you change it by your favorite langage 1033 (english) 1036 (Francais)...
then in your strategie right click on the package >properties>deployment>advanced options> put a tick in "ignore the langage"

just one thing the registration is still in chineese...

or if you prefer command line :
msiexec /i \\atice\NETLOGON\itunes7\QuickTime.msi /g 1036 /quiet
msiexec /i \\atice\NETLOGON\itunes7\iTunes.msi /g 1036 /quiet
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
116
Note

Just a quick note regarding Vista. Although the user profile is in a different location, the %userprofile% environment variable still works and can be used.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Command Line
silent uninstall for verision 7.0.2.16

MsiExec.exe /X{446DBFFA-4088-48E3-8932-74316BA4CAE4} /qn /norestart
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note

Follow below link to package latest version of itunes for Windows 7

http://msiworld.blogspot.com.au/2012/06/re-packaging-apple-itunes-10617-and.html

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

Inventory Records (38)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Questions & Answers (33)

Questions & Answers related to Apple iTunes

4
ANSWERS
1
ANSWERS
6
ANSWERS
2
ANSWERED
1
ANSWERS
2
ANSWERS
2
ANSWERS
1
ANSWERS
3
ANSWERS
1
ANSWERS
1
ANSWERS
2
ANSWERS
1
ANSWERS
1
ANSWERS
3
ANSWERED

Blogs (1)

Blog posts related to Apple iTunes

Reviews (0)

Reviews related to Apple iTunes

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ