MSFN Forum: iTunes 4.7 switches - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

iTunes 4.7 switches Rate Topic: -----

#1 User is offline   dkreifus 

  • dkreifus
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 30-March 04

Posted 26 October 2004 - 06:26 PM

Quote

/L Language ID
/S Hide initialization dialog
/S/v/qn For Silent mode
/V paramaterse to MSIExec.exe
/UA<url to IntMSiA.exe>
/UW<url to IntMSiW.exe>
/UM<url to msi package>



I don't know what these all mean. Hopefulyl someone can expand on this.


#2 User is offline   peach 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 14-October 04

Posted 08 November 2004 - 02:38 PM

The /S /v/qn is supposed to be a silent install, but it isn't. At least not for me. You still have to click 'Next' on the first initialization dialog. Does anyone know?

iTunes 4.7 doesn't generate the setup.iss file using the -R switch either, (4.6 did..) and after installing it, in the log-file, it says 'error 3' or something, which means it cannot find enough info in the setup.iss file.

I got the 4.6 version to work, but not 4.7...

#3 User is offline   lilweirddude 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 573
  • Joined: 24-August 04

Posted 08 November 2004 - 03:37 PM

maybe because of the space between S and /?

#4 User is offline   peach 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 14-October 04

Posted 08 November 2004 - 08:06 PM

lilweirddude, on Nov 8 2004, 03:37 PM, said:

maybe because of the space between S and /?

I remember testing with and without spaces, and the /S /v/qn - with a space, was the most successfull..

:}

#5 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 11 November 2004 - 09:16 PM

I can attest that Ive gotten 4.7 to work with the setup.iss and although it does show that initial "next" screen, if you sit and wait it actually does perform the install.

#6 User is offline   jrf2027 

  • Member
  • PipPip
  • Group: Members
  • Posts: 238
  • Joined: 06-September 04

Posted 11 November 2004 - 09:51 PM

durex, on Nov 11 2004, 09:16 PM, said:

I can attest that Ive gotten 4.7 to work with the setup.iss and although it does show that initial "next" screen, if you sit and wait it actually does perform the install.

Ditto here, just did it an hour ago, in fact.

#7 User is offline   peach 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 14-October 04

Posted 12 November 2004 - 03:38 AM

I know.. But you shouldn't have to press 'Next'. It has to be completely silent. No user interaction.

#8 User is offline   jbjones 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 26-October 04

Posted 25 November 2004 - 12:51 AM

Anyone solved this problem of pressing [next]?

I just wanted to chime in that I'm having the problem too with 4.7

JBJones

#9 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 26 November 2004 - 03:23 PM

I managed to get this working using a VBScript. Basically, it launches the setup using the /s and the setup.iss. The end of the script has a loop to look for the itunes.log the installer creates once it completes, because without this it would go onto the next item in your RunOnceEx as soon as the "N" is hit. Youll want to modfiy the 'APP' line to reflect what path your iTunes setup.exe is in.

I also created a VBS Script to uninstall the Quicktime components that arent required for iTunes (if you choose Uninstall Quicktime and choose the 'Uninstall' option instead of the 'Uninstall Everything' Option).

iTunes Setup VBScript
Dim FSO, WshShell, AllDrives, CDROM, SYSD, APP, MsgBox

Set FSO = CreateObject("Scripting.FileSystemObject")
Set AllDrives = FSO.Drives
Set WshShell = WScript.CreateObject("WScript.Shell")
SYSD = WshShell.ExpandEnvironmentStrings("%Systemdrive%")

' Check for CDROM
For Each objDrive In fso.Drives
 If objDrive.DriveType = "4" And objDrive.IsReady Then
   If fso.FileExists(objDrive & "\WIN51") Then cdrom = objDrive
 End If
Next

If Len(CDROM) = 0 Then
   MsgBox "Error: CD-ROM not found!",vbCritical,"Diskeeper"
   WScript.Quit
End if

APP = CDROM & "\Custom\Applications"

' Launch Silent Installer
WshShell.Run (APP & "\iTunes\setup.exe -s -f2" & SYSD & "\iTunes.log")

' Wait for Install Window to come to focus
Do until WshShell.AppActivate ("iTunes for Windows")
    WScript.Sleep 2000
Loop

WScript.Sleep 500

' Hit N for Next
WshShell.SendKeys "N"

' Wait for Installation to complete
Do until FSO.FileExists(SYSD & "\iTunes.log")
    WScript.Sleep 3000
Loop

WScript.Quit


QuickTime Uninstall VBScript

Quote

Set WshShell = WScript.CreateObject("WScript.Shell")

' Launch Uninstaller
WshShell.Run "C:\WINDOWS\unvise32qt.exe /s C:\WINDOWS\System32\QuickTime\Uninstall.log"

' Wait for Uninstall Window to come to focus
Do until WshShell.AppActivate ("QuickTime Uninstall")
    WScript.Sleep 2000
Loop

WScript.Sleep 500

' send 1 'tab' keystrokes
WshShell.SendKeys "{TAB}"

' send the 'enter' keystroke
WshShell.SendKeys "{ENTER}"

' Wait 5 seconds for Uninstall to Complete
WScript.Sleep 5000

WScript.Quit


#10 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 November 2004 - 03:35 PM

If the switches it offers are "/S /v/qn", have you tried making an Administrative Install Point of it? (also called server Image)

1. Run the setup with "/A" switch.
2. Then take the resulting folder, and use the new MSI that was created, with "/QB" switch.
3. That's it. (plain and much simpler)

#11 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 26 November 2004 - 05:00 PM

Yea, but what if you dont want the default options like "Make QuickTime Default Media player" or "Use iTunes as default audio player"?

#12 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 November 2004 - 05:19 PM

durex, on Nov 27 2004, 04:30 AM, said:

Yea, but what if you dont want the default options like "Make QuickTime Default Media player" or "Use iTunes as default audio player"?

There must be some command-line arguments, or registry tweaks for that.

#13 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 27 November 2004 - 02:34 PM

Tried running the "itunes.msi /QB" from the cmdprompt and get the following error..

Posted Image

Does this mean it still needs the setup.iss?

#14 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 November 2004 - 02:38 PM

Is there an EXE in that folder, besides the MSI ?

#15 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 27 November 2004 - 02:57 PM

Nope, the only thing the admin install thing did (when i ran the itunes original setup with the /A) is extract that msi, Programs Files Folder and System32 folder which look to contain the files that the installer uses I imagine.

#16 User is offline   hulala.[uk] 

  • inside the computer
  • Group: Members
  • Posts: 48
  • Joined: 23-January 04

Posted 02 December 2004 - 06:56 AM

right, i have just found something...with administrative deployment in fact you dont even need administrative msi just launch setup and copy setup files from TEMP folder you can find itunes.msi file you need there.

next problem with error message that comes up if you try just installing this .msi with /qb switch what you need to add is "ISSETUPDRIVEN=0", "SILENT_INSTALL=1" and if yo uneed "REPAIR_INSTALL=1"

any other changes can be made with one of these properties:

ACTION=ADMIN AA="Audible Audio" AIF="AIFF Audio File" AIFC="AIFF Audio File" AIFCREGENTRY=0 AIFF="AIFF Audio File" AIFFREGENTRY=0 AIFREGENTRY=0 ALLUSERS=1 ALLUSERSPROFILE=C:\ APPLE_COMPUTER="C:\Documents and Settings\All Users\Application Data\Apple Computer\" ARPCONTACT="AppleCare Support" ARPHELPLINK=http://www.info.apple.com/ ARPHELPTELEPHONE=1-800-275-2273 ARPNOMODIFY=1 ARPPRODUCTICON=ARPPRODUCTICON.exe ARPURLINFOABOUT=http://www.apple.com ARPURLUPDATEINFO=http://www.apple.com/itunes/ ASSUME_MEDIA_DEFAULTS=0 ASSUME_QT_DEFAULTS=0 AUTOPLAY_CREATECD="Create a CD" AUTOPLAY_IMPORTSONGS="Import songs" AUTOPLAY_PLAYCD="Play audio CD" AUTOPLAY_SHOWSONGS="Show songs" CDA="Audio CD Track" CDDA="Audio CD Track" CD_CONFIGURATION="C:\Program Files\iTunes\CD Configuration\" CD_CONFIGURATION1="C:\Program Files\iTunes\CD Configuration\" CD_CONFIGURATION2="C:\Program Files\iTunes\CD Configuration\" CD_CONFIGURATION3="C:\Program Files\iTunes\CD Configuration\" COMPANYNAME="your company" DRIVERS=C:\WINNT\System32\drivers\ DWUSINTERVAL=30 HIDE_QT=0 INSTALLDIR="C:\Program Files\iTunes\" INSTALLLEVEL=1 INSTALL_DESKTOP_SHORTCUTS=0 IPODDIR="C:\Program Files\iPod\bin" IPODSERVICE.RESOURCES="C:\Program Files\iTunes\iPodService.Resources\" IPODSERVICE.RESOURCES1="C:\Program Files\iPod\bin\iPodService.Resources\" IPOD_BASE_DIR="C:\Program Files\iPod" ISSCRIPT_ENGINE_VERSION=8.1.0.293 ISSCRIPT_VERSION_MISSING="The InstallScript engine is missing from this machine. If available, please run ISScript.msi, or contact your support personnel for further assistance." ISSCRIPT_VERSION_OLD="The InstallScript engine on this machine is older than the version required to run this setup. If available, please install the latest version of ISScript.msi, or contact your support personnel for further assistance." ISSETUPDRIVEN=1 ISSETUP_UISEQUENCE_PROCESSED=1 ISVROOT_PORT_NO=0 ITL="Apple Computer, Inc." ITMS="iTunes Music Store URL" ITUNES="C:\Program Files\iTunes\" ITUNES1="C:\Documents and Settings\All Users\Application Data\Apple Computer\iTunes\" KEY_HAS_BEEN_REMOVED=0 M3U="M3U Audio Playlist" M4A="MPEG-4 Audio File" M4B="MPEG-4 Audio File (Protected)" M4P="MPEG-4 Audio File (Protected)" MOV="Movie File" MP2="MPEG Layer 2 Audio" MP3="MPEG Layer 3 Audio" MPEG="MPEG File" MPG="MPEG File" NEW_DIRECTORY1="C:\Program Files\iPod\" PARTNER_ID=-1 PARTNER_NAME=-1 PARTNER_VERSION=4.7.0.42 PLS="PLS Audio Playlist" QUICKTIME_INSTALL_STATUS=1 REBOOT=Suppress REPAIR_INSTALL=0 RMP="RealJukebox Music Package" ROOTDRIVE=C:\ SC_INFO="C:\Documents and Settings\All Users\Application Data\Apple Computer\iTunes\SC Info\" SETUPEXEDIR="C:\Documents and Settings\"your user name"\Desktop" SILENT_INSTALL=1 STANDARD_USE_SETUPEXE="This installation cannot be run by directly launching the MSI package. You must run setup.exe." TARGETDIR="C:\Program Files\iTunes\" USERNAME=your user name USERPROFILE=C:\ WAV="WAVE Audio File" WAVE="WAVE Audio File" _3BD526EA4F5D4126AA001BB12152916A="C:\Program Files\iTunes\iTunesMiniPlayer.Resources\en.lproj\" _6E1EDA19AF11470086F9B5D9E6F3C5C8="C:\Program Files\iPod\bin\iPodService.Resources\en.lproj\" _7F497CE61492463990D8CB03E227DF10="C:\Program Files\iTunes\iTunes.Resources\en.lproj\" _DC6F1346095D4B42AB0D66A8D3F7AEE6="C:\Program Files\iTunes\iTunesHelper.Resources\en.lproj\" ARPSYSTEMCOMPONENT=1 ARPNOMODIFY=1 ARPNOREMOVE=1 ISSETUPDRIVEN=0

post results guys works for me just need to roll this update out now.:)

cheers!

#17 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 December 2004 - 11:22 AM

Oh my god! :o
So many switches for the MSI !
Thanx for sharing the info.

#18 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 02 December 2004 - 03:03 PM

holy cripes! how the hell did you find all of those? You know them for other progs? cant wait to test it out!

#19 User is offline   hulala.[uk] 

  • inside the computer
  • Group: Members
  • Posts: 48
  • Joined: 23-January 04

Posted 03 December 2004 - 04:31 AM

@prathapml,

these are not quite switches they are properties that are described inside every MSI file under Property paragraph, so these are unique for this particular package and not nesseceraly will work for all others, some will like USERNAME or COMPANYNAME.

@durex,

when you launch installation in %USERPROFILE%\Local Settings\Temp you will find various log files and temp files so if you keep your install open you will see what it does by reading log files, most of the time;)

p.s. you can add any of these properties into msi using something like orca and not writing them in your command line:)

good luck!

#20 User is offline   Lucid 

  • Group: Members
  • Posts: 2
  • Joined: 07-December 04

Posted 07 December 2004 - 01:38 PM

Okay, so this thread is going in all sorts of directions, so I figured I'd toss up my VBScript to install iTunes 4.7 (for whatever it's worth).
- Lucid

' Automatic iTunes installation and configuration script.

Option Explicit
Dim WshShell, objFSO, SystemDrive, strMessage

On Error Resume Next

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


' Executes the installtion process using the "Setup.iss" answer file.
WshShell.Run "iTunesSetup.exe -s", 1, False

' Displays a notice for 10 seconds for the end user's benefit.
strMessage = "Please ignore the iTunes Welcome window that will be displayed on your screen during the installation process." + (Chr(13)& Chr(13)) + "(The window will remain on your screen until the iTunes installation finishes.)"
WshShell.Popup strMessage, 10, "Please be patient...", 64

' Verifies that the installer is loaded (checks every two seconds).
While WshShell.AppActivate("InstallShield - iTunes") = FALSE
wscript.sleep 2000
Wend
WScript.Sleep 2000

'Brings the installer to the foreground (seems to need both activations to work correctly).
WshShell.AppActivate "InstallShield - iTunes"
WScript.Sleep 1000
WshShell.AppActivate "iTunes for Windows"
WScript.Sleep 1000

'Sends keystroke to initiate the installation.
WshShell.SendKeys "N"


' Waits for the installation process to complete by looking for the log file.
Do until objFSO.FileExists("setup.log")
   WScript.Sleep 3000
Loop


' Renames the log file in the event that the software ever needs to be reinstalled.
If objFSO.FileExists ("setup.log") Then
	If objFSO.FileExists ("LastSetup.log") Then
  objFSO.DeleteFile "LastSetup.log", True
	End if

	objFSO.CopyFile "setup.log", "LastSetup.log", True

	If objFSO.FileExists ("setup.log") Then
  objFSO.DeleteFile "setup.log", True
	End If
End If



' OPTIONAL CUSTOMIZATIONS
' Configures QuickTime preferences.
If objFSO.FileExists ("QuickTime.qtp") Then
	objFSO.CopyFile "QuickTime.qtp", (SystemDrive & "\Documents and Settings\All Users\Application Data\Quicktime\QuickTime.qtp"), True
End If

If objFSO.FileExists (SystemDrive & "\Documents and Settings\All Users\Desktop\QuickTime Player.lnk") Then
	objFSO.DeleteFile (SystemDrive & "\Documents and Settings\All Users\Desktop\QuickTime Player.lnk"), True
End If

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", 1, False


Wscript.Quit


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy