| InstallerContactSite Map |
Advanced Installer User Guide | |||
Msiexec.exe Command Line |
The Windows Installer technology uses Msiexec.exe for installing MSI and MSP packages. This tool gives you full control over the installation process, allowing you to set:
The usual form of the msiexec command line is this: msiexec.exe <install_option> <path_to_package> [package_parameters] Install OptionsWhen launching an installation package, you can set the install type through these options: msiexec.exe [/i][/a][/j{u|m|/g|/t}][/x] <path_to_package>
Sample command line: msiexec.exe /i "C:\Example.msi" Display OptionsThe user interface level of the installation can be configured according to the target environment. For example, a package distributed to clients should have a full UI, while a package deployed through Group Policy should have no user interface. Msiexec.exe sets the UI level of the installation through these options: msiexec.exe /i <path_to_package> [/quiet][/passive][/q{n|b|r|f}]
Sample command line: msiexec.exe /i "C:\Example.msi" /qn Restart OptionsSometimes an installation overwrites files which are in use or it needs to reboot the machine in order to finish. The reboot policy used by the installation can be set through these options: msiexec.exe /i <path_to_package> [/norestart][/promptrestart][/forcerestart]
Sample command line: msiexec.exe /i "C:\Example.msi" /norestart Logging OptionsWhen debugging an installation package you can use multiple logging parameters in order to create a log. This log will contain different information for each parameter you use: msiexec.exe [/i][/x] <path_to_package> [/L{i|w|e|a|r|u|c|m|o|p|v|x+|!|*}][/log] <path_to_log>
Sample command line: msiexec.exe /i "C:\Example.msi" /L*V "C:\package.log" Update OptionsThe Windows Installer command line can apply or remove updates (patches for example) through these options: msiexec.exe [/update][/uninstall[/package<product_code_of_package>]] <path_to_package>
Sample command lines: msiexec.exe /update "C:\MyPatch.msp"
msiexec.exe /uninstall {1BCBF52C-CD1B-454D-AEF7-852F73967318} /package {AAD3D77A-7476-469F-ADF4-04424124E91D}
Repair OptionsIf you have an installed package, you can use the Windows Installer command line for repairing it: msiexec.exe [/f{p|o|e|d|c|a|u|m|s|v}] <product_code>
Sample command line: msiexec.exe /fa {AAD3D77A-7476-469F-ADF4-04424124E91D}
Set public propertiesThe name of a public property contains only uppercase letters (for example PROPERTY). This type of properties can be set through the command line like this: PROPERTY="value". Sample command line: msiexec.exe /i "C:\Example.msi" MY_PROP="myValue" |
