Below is a .VBS script that can be used to automatically install iTunes 5.0.1. Just obtain the "iTunesSetup.exe" file and place it in the same folder as the .VBS script.
One note is that the "QuickTime.qtp" file mentioned in the script is made by changing the computer's date to about 10 years into the future, then installing QuickTime. This will get rid of that stupid notice about upgrading to the full version when QuickTime normally opens. It's an optional thing, so if you don't have it the script will continue to install iTunes anyway (if you want to use it, just place the file in the same folder as the .VBS script).
I hope this helps,
Rick
' Automatic iTunes installation and configuration script.
Option Explicit
Dim WshShell, WshEnv, objFSO, SystemDrive, strMessage
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set WshEnv = WshShell.Environment("PROCESS")
SystemDrive = WshShell.ExpandEnvironmentStrings("%Systemdrive%")
' Disables the Open File security warning.
WshEnv("SEE_MASK_NOZONECHECKS") = 1
' Executes the installation process.
WshShell.Run("iTunesSetup.exe /s /v""ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=0 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1"""), 1, False
' Enables the Open File security warning again.
WshEnv.Remove("SEE_MASK_NOZONECHECKS")
' Waits for the installer to initialize (checks every two seconds).
While WshShell.AppActivate("iTunes + QuickTime") = FALSE
wscript.sleep 2001
Wend
' Determines when the installer is finished (checks every two seconds).
While WshShell.AppActivate("iTunes + QuickTime") = TRUE
wscript.sleep 2001
Wend
WScript.Sleep 1002
' OPTIONAL CUSTOMIZATIONS
' Configures QuickTime preferences.
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
' Uses TaskKill to remove the taskbar icon right away instead of waiting for a restart.
WshShell.Run "%COMSPEC% /C TASKKILL /F /IM qttask.exe", 1, False
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