Changes

Jump to: navigation, search

ITunes

No change in size, 17:22, 2 April 2015
Moved obsolete 10.4 VBscript below iTunes 11 so that the most recent version is first
* There is a 64bit version of ITunes available too. As of version 11 the 64bit installer contains 64bit versions of ITunes itself and Apple Mobile Device Support and 32bit versions of Apple Application Support. The package definitions for the 64bit versions look basically the same as below, just the paths and GUIDs are different.
* Apple usually changes the GUIDs for every new release. This means that you need to perform a test install and check the GUIDs every time you deploy a new version unless you're willing to require that the original MSI be present to perform an uninstallation. One could potentially also write a script to check <code>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products</code> and find the correct uninstall string for whatever version of each package is currently installed.
 
= Full iTunes 10.4.0.80 installation in VBS =
 
<source lang="vb">
' Directory folder %Software\iTunes, the script requires that the *.vbs file is located the same place as all *.msi files. If you have SCCM, you can distribute this script as a package.
 
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strScriptFileDirectory = objFSO.GetParentFolderName(wscript.ScriptFullName)
 
' Create Transform for iTunes with orca or another msi editor, to make iTunes more "admin" friendly for distribution in company networks. A "how to" is described under the item iTunes.
 
WshShell.Run "msiexec /I AppleApplicationSupport.msi /q /norestart", 0, true
WshShell.Run "msiexec /I Bonjour.msi /q /norestart", 0, true
WshShell.Run "msiexec /I AppleMobileDeviceSupport.msi /q /norestart", 0, true
WshShell.Run "msiexec /I itunes.msi TRANSFORMS=itunes.mst /q /norestart", 0, true
WshShell.Run "msiexec /I quicktime.msi DESKTOP_SHORTCUTS=0 SCHEDULE_ASUW=0 REENABLEAUTORUN=0 /q /norestart", 0, true
 
' set parental controls, that disables "Run first welcome window", "Cannot change parental controls" and "No autoupdate"
 
Dim wshShell
 
Set wshShell = CreateObject( "WScript.Shell" )
wshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminFlags", 16777473, "REG_DWORD"
</source>
 
Copy this to notepad++ or another editor, save as *.vbs :-)
= iTunes 12.1.1.4 installation =
</source>
 
= Full iTunes 10.4.0.80 installation in VBS =
 
<source lang="vb">
' Directory folder %Software\iTunes, the script requires that the *.vbs file is located the same place as all *.msi files. If you have SCCM, you can distribute this script as a package.
 
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strScriptFileDirectory = objFSO.GetParentFolderName(wscript.ScriptFullName)
 
' Create Transform for iTunes with orca or another msi editor, to make iTunes more "admin" friendly for distribution in company networks. A "how to" is described under the item iTunes.
 
WshShell.Run "msiexec /I AppleApplicationSupport.msi /q /norestart", 0, true
WshShell.Run "msiexec /I Bonjour.msi /q /norestart", 0, true
WshShell.Run "msiexec /I AppleMobileDeviceSupport.msi /q /norestart", 0, true
WshShell.Run "msiexec /I itunes.msi TRANSFORMS=itunes.mst /q /norestart", 0, true
WshShell.Run "msiexec /I quicktime.msi DESKTOP_SHORTCUTS=0 SCHEDULE_ASUW=0 REENABLEAUTORUN=0 /q /norestart", 0, true
 
' set parental controls, that disables "Run first welcome window", "Cannot change parental controls" and "No autoupdate"
 
Dim wshShell
 
Set wshShell = CreateObject( "WScript.Shell" )
wshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Apple Computer, Inc.\iTunes\Parental Controls\Default\AdminFlags", 16777473, "REG_DWORD"
</source>
 
Copy this to notepad++ or another editor, save as *.vbs :-)
= Removing iTunes without GUIDs =
91
edits

Navigation menu