I'm having a few problems generating a script for installing QuickTime player. I used the wizard to generate a script with the appropriate parameters. However when I run the installer, I receive the error message "Invalid command line argument" and the installer quits. The parameters I've used work fine in the command line so I am not sure what is wrong.
The command line I need to execute is as follows:
msiexec /i "Quicktime.msi" /passive DESKTOP_SHORTCUTS=NO (this works perfectly in the command line)
The script that has been created is as follows:
Code: Select all
if Variable INSTALLED_APPLEQUICKTIMEPLAYER Equals FALSE
Set Variable PROGRESSTEXT to Downloading Apple QuickTime Player
Set Variable DATA_APPLEQUICKTIMEPLAYER to
Define File Bag : #IADIR#\runtimes\Apple QuickTime Player\*.*, include files recursively, get runtime location of files into variable DATA_APPLEQUICKTIMEPLAYER
Set Variable PROGRESSTEXT to Installing Apple QuickTime Player
Set Variable RESULT_APPLEQUICKTIMEPLAYER to
Set Variable ERROR_APPLEQUICKTIMEPLAYER to
Install/Remove MSI Package $DATA_APPLEQUICKTIMEPLAYER$\QuickTime.msi[/passive DESKTOP_SHORTCUTS=NO] (get result into variable RESULT_APPLEQUICKTIMEPLAYER)
if Variable RESULT_APPLEQUICKTIMEPLAYER Equals REBOOT
MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
if Variable REBOOT_APPLEQUICKTIMEPLAYER Equals OK
Reboot Computer and Resume Setup
else
Terminate Installation
end
else
if Variable RESULT_APPLEQUICKTIMEPLAYER Equals ERROR
MessageBox: $TITLE$ Setup, Apple QuickTime Player could not be installed.$NEWLINE$$NEWLINE$$ERROR_APPLEQUICKTIMEPLAYER$$NEWLINE$$NEWLINE$Please manually install Apple QuickTime Player on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
Terminate Installation
end
end
end
The part that seems to be missing is the msiexec /i, unless that is part of the " Install/Remove MSI Package" instruction? I have double clicked on this instruction and the Install MSI Package configurations forms show that I believe to be the correct parameters i.e. the Action String is "/passive DESKTOP_SHORTCUTS=NO". I have attached the full script to this post. Could someone advise on what I am doing wrong?
Many thanks,
Damien