Msiexec (command-line options)
Updated: January 21, 2005
Under editedpage
- To install or configure a product
- to use the administrative installation option
- To repair a product
- To uninstall a product
- To advertise a product
- To set logging level
- To apply an update
- To install a transform using the command line
- to install and advertise a product using a transform with the command line
- To set the user interface level
- To display copyright information for the Windows Installer
- To call the system API DllRegisterServer to self-register modules passed on the command line.
- To call the system API DllUnRegisterServer to unregister modules passed on the command line.
To install or configure a product
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /i A:\Example.msi
To use the administrative installation option
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
To repair a product
Syntax
Parameters
Remarks
- This option ignores any property values that you type at the command line.
- The default parameter for this command-line option is /fpecms.
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /fpecms Example.msi
To uninstall a product
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics
Examples
msiexec /x Example.msi
To advertise a product
Syntax
msiexec {u | m} Package /t TransformList
msiexec {u | m} Package /g LanguageID
Parameters
Remarks
- This option ignores any property values that you type at the command line.
- If you want to install the application with elevated privileges, use /jm.
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /jm Example.msi
To set logging level
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- To include the v option in a log file using the wildcard flag, type /L*v at the command prompt.
- The Windows Installer log file options can also be used with the uninstall and repair processes.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /i Example.msi /Lime logfile.txt
To apply an update
Syntax
Parameters
Remarks
- To apply an update to an administrative installation
package, use the following syntax:
msiexec/pUpdatePackage/aExample.msi
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
To install a transform using the command line
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
To install and advertise a product using a transform with the command line
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
To set the user interface level
Syntax
Parameters
Remarks
- /qb+- is not a supported user interface level. The modal box is not displayed if the user cancels the installation.
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /qb Example.msi
To display copyright information for the Windows Installer
Syntax
Parameters
Remarks
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics
To call the system API DllRegisterServer to self-register modules passed on the command line
Syntax
Parameters
Caution
- Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.
Remarks
- This option is used only for registry information that cannot be added using the registry tables of the .msi file.
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /y my_file.dll
To call the system API DllUnRegisterServer to unregister modules passed on the command line
Syntax
Parameters
Remarks
- This option is used only for registry information that cannot be added using the registry tables of the .msi file.
- Windows Installer command-line options are not case-sensitive.
- For more information about the Windows Installer command-line options, see Related Topics.
Examples
msiexec /z my_file.dll
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |