Q. Can Agvance be installed silently using command line parameters and a scheduled task?
A. The Agvance installation process uses a standard Windows Installer MSI wrapped in a standard InstallShield Setup.exe. Because of this any of the command line parameters supported by InstallShield and Windows Installer may be used.
If the Agvance data resides on a mapped drive, set up a batch file that maps the appropriate drive(s) and runs the install. An example of the batch file is below.
net use L: \\serversql\sql2008
"L:\Agvance Updates\setup.exe" /s /v"/qn DATAFOLDER=L:\AVDATA"
The first line maps the L drive to the sql2008 folder on a server named serversql.
The second line runs the Setup.exe and passes in the parameters so the install is completed silently and the Agvance icon points to data at L:\AVDATA.
If the path to the data folder includes spaces, close it using a backslash and quote, \”, as demonstrated below:
"L:\Agvance Updates\setup.exe" /s /v"/qn DATAFOLDER=\"L:\Agvance Data\AVDATA\""
The batch file may be executed manually or with a Windows Scheduled Task.
If the Agvance data resides on a local drive, the Setup.exe can be executed with a Windows Scheduled Task as long as the appropriate command line parameters are specified.
Setup.exe Command Line Parameters:
/s | Tells the setup.exe portion of the install to run silently. The setup.exe uncompresses the MSI and then runs it. |
/v | Tells the setup.exe to pass the following parameters to the MSI when it is run. All of the parameters passed to the MSI should be enclosed in quotes. |
For more information regarding Setup.exe command line parameters, please see here.
MSI Command Line Parameters:
/qn | Tells the MSI to run silently with no user interface. |
DATAFOLDER= | Specifies the Start-in folder for the Agvance icon. If the path to the data folder includes spaces, close it using \". |
INSTALLDIR= | Specifies the folder to which Agvance program files will be installed. |
SERIALNUMBER= | Specifies the Agvance Serial Number. If Agvance is already installed, this is ignored and the Serial Number specified in the original install is used. |
ACTIVATIONKEY= | Specifies the Installation Verification Code. If Agvance is already installed, this is ignored and the Verification Code specified in the original install is used. |
For more information regarding MSI command line parameters, please see here.