Page History
When installing from a command-line, supply the MSI or MSP file name as a parameter to the msiexec.exe command at a command prompt. The general format of the command is:
msiexec /Option <Required Parameter> [Optional Parameter] [Visual LANSA Public Properties]
The Visual LANSA Public Properties are known to msiexec as Public Properties. The names of these properties are displayed to the right of the input boxes in the installation dialogs. For example (DBII) to the right of Data Source Name in Setup the Local Database dialog.
...
Note that when an MSI or MSP file needs to be specified, sometimes the full path is required. So, it is recommended that you always specify the full path.
Install Options
...
</package | /i> <Product.msi>
Installs or configures a product
...
Installs or configures a product
/a <Product.msi>
Administrative install - Installs a product on the network
...
Administrative install - Installs a product on the network
/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
Advertises a product - m to all users, u to current user
</uninstall | /x> <Product.msi | ProductCode>
Uninstalls the product
Display Options
/quiet
Quiet mode, no user interaction
/passive
Unattended mode - progress bar only
...
Advertises a product - m to all users, u to current user
</uninstall | /x> <Product.msi | ProductCode>
Uninstalls the product
Display Options
/quiet
Quiet mode, no user interaction
/passive
Unattended mode - progress bar only
/q[n|b|r|f]
Sets user interface level
n - No UI
b - Basic UI
r - Reduced UI
f - Full UI (default)
/help
Help information
Restart Options
/norestart
Do not restart after the installation is complete
/promptrestart
Prompts the user for restart if necessary
/forcerestart
Always restart the computer after installation
Logging Options
...
Sets user interface level
n - No UI
b - Basic UI
r - Reduced UI
f - Full UI (default)
/help
Help information
Restart Options
/norestart
Do not restart after the installation is complete
/promptrestart
Prompts the user for restart if necessary
/forcerestart
Always restart the computer after installation
Logging Options
/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
i - Status messages
w - Nonfatal warnings
e - All error messages
a - Start up of actions
r - Action-specific records
u - User requests
c - Initial UI parameters
...
i - Status messages
w - Nonfatal warnings
e - All error messages
a - Start up of actions
r - Action-specific records
u - User requests
c - Initial UI parameters
m - Out-of-memory or fatal exit information
...
o - Out-of-disk-space messages
p - Terminal properties
v - Verbose output
x - Extra debugging information
+ - Append to existing log file
! - Flush each line to the log
* - Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>
Update Options
...
p - Terminal properties
v - Verbose output
x - Extra debugging information
+ - Append to existing log file
! - Flush each line to the log
* - Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>
Update Options
/update <Update1.msp>[;Update2.msp]
...
Applies update(s)
...
/uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
...
Remove update(s) for a product
Repair Options
...
/f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
Repairs a product
p - only if file is missing
o - if file is missing or an older version is installed (default)
e - if file is missing or an equal or older version is installed
d - if file is missing or a different version is installed
c - if file is missing or checksum does not match the calculated value
a - forces all files to be reinstalled
u - all required user-specific registry entries (default)
m - all required computer-specific registry entries (default)
s - all existing shortcuts (default)
v - runs from source and recaches local package
Setting Public Properties
...
Repairs a product
p - only if file is missing
o - if file is missing or an older version is installed (default)
e - if file is missing or an equal or older version is installed
d - if file is missing or a different version is installed
c - if file is missing or checksum does not match the calculated value
a - forces all files to be reinstalled
u - all required user-specific registry entries (default)
m - all required computer-specific registry entries (default)
s - all existing shortcuts (default)
v - runs from source and recaches local package
Setting Public Properties
[PROPERTY=PropertyValue]
A help dialog is displayed by msiexec.exe if no options are specified on the command-line or if an error is encountered when processing the command-line.
Sample installation commands:
Install a Version | msiexec.exe /i <product>.msi |
Administrative install of a version | msiexec.exe /a <product>.msi |
Install a Patch | msiexec.exe /p <product>.msp |
Install a Patch with database updates | msiexec.exe /p c:\<product>.msp SUDB=1 |
Install to a specific directory silently | msiexec.exe /i <product.msi> APPA=c:\MyInstallLocation /passive |
LANSA Public Properties not documented on the installation dialogs
EXITDIALOGOPTIONALCHECKBOX | Disable the Exit Dialog start check box so that the application is not started. If it is set to 0 the check box is not shown. Also note that the /passive command line option and other options that cause the Exit Dialog not to be shown, will not start the application either. |
For additional documentation about the command line syntax, refer to the Windows Installer online resources.
...
LANSA Overrides the MSI command line settings ALLUSERS and MSIINSTALLPERUSER.
The LANSA behaviour is as follows:
...
