You will have to customize iTunes by creating an MST file.
1) Change the following Public Properties in the MST:
DESKTOP_SHORTCUTS = 0
DISABLEADVTSHORTCUTS = 0
SCHEDULE_ASUW = 0
AMDS_IS_INSTALLED = 1
BONJOUR_IS_INSTALLED = 1
REBOOT = ReallySuppress
NO_ASUW = 0
NO_BONJOUR = 0
IAcceptLicense = Yes
REGSRCH_DESKTOP_SHORTCUTS = 0
2) Install iTunes on a test machine and make all the customizations you want. All the customizations will be stored in following files:
a) “%userprofile%\AppData\Local\Apple Computer\iTunes\cache.db
b) “%userprofile%\AppData\Local\Apple Computer\iTunes\iTunesPrefs.xml”
c) “%userprofile%\AppData\Roaming\Apple Computer\iTunes\iTunesPrefs.xml”
d) “%userprofile%\AppData\Roaming\Apple Computer\iTunes\Preferences\com.apple.iTunes.plist”
e) “%userprofile%\AppData\Roaming\Apple Computer\iTunes\Preferences\keychain.plist”
Copy these files in C:\ProgramData\Apple Computer\iTunes\ folder in your MST file and then use the below script to run in Custom Action just before InstallFinalize. Condition to be kept as NOT REMOVE~=”ALL”
‘Used to copy the config file to the current user\appdata\local directory.
on error resume next
Set oShell = CreateObject( “WScript.Shell” )
userprofile=oShell.ExpandEnvironmentStrings(“%USERPROFILE%”)
systemdrive=oShell.ExpandEnvironmentStrings(“%SYSTEMDRIVE%”)
Set fso = CreateObject(“Scripting.FileSystemObject”)
Set afile = fso.GetFile(systemdrive & “\ProgramData\Apple iTunes\local\cache.db”)
strDestination1 =userprofile & “\AppData\Local\Apple Computer\iTunes\cache.db”
Set bfile = fso.GetFile(systemdrive & “\ProgramData\Apple iTunes\local\iTunesPrefs.xml”)
strDestination2 =userprofile & “\AppData\Local\Apple Computer\iTunes\iTunesPrefs.xml”
Set cfile = fso.GetFile(systemdrive & “\ProgramData\Apple iTunes\Roaming\iTunesPrefs.xml”)
strDestination3 =userprofile & “\AppData\Roaming\Apple Computer\iTunes\iTunesPrefs.xml”
Set dfile = fso.GetFile(systemdrive & “\ProgramData\Apple iTunes\Roaming\Preferences\com.apple.iTunes.plist”)
strDestination4 =userprofile & “\AppData\Roaming\Apple Computer\iTunes\Preferences\com.apple.iTunes.plist”
Set efile = fso.GetFile(systemdrive & “\ProgramData\Apple iTunes\Roaming\Preferences\keychain.plist”)
strDestination5 =userprofile & “\AppData\Roaming\Apple Computer\iTunes\Preferences\keychain.plist”
fso.CreateFolder(userprofile & “\AppData\Local\Apple Computer”)
fso.CreateFolder(userprofile & “\AppData\Local\Apple Computer\iTunes”)
fso.CreateFolder(userprofile & “\AppData\Roaming\Apple Computer”)
fso.CreateFolder(userprofile & “\AppData\Roaming\Apple Computer\iTunes”)
fso.CreateFolder(userprofile & “\AppData\Roaming\Apple Computer\iTunes\Preferences”)
afile.Copy(strDestination1)
bfile.Copy(strDestination2)
cfile.Copy(strDestination3)
dfile.Copy(strDestination4)
efile.Copy(strDestination5)