Previous Topic Next topic Print topic


Msiexec options

Option Parameter Description
/a Package Uses the Administrative option to install a product to a network for use by a workgroup. An administrative installation installs a source image of a program to a location on a network. This is useful for sites that customize the installation program. Users in a workgroup who have access to this administrative source image can then install the product from this source.
/i Package/ProductCode Installs or configures a product.
/m Generates an SMS status .mif file. Must be used with either the install (-i), remove (-x), administrative installation (-a), or reinstall (-f) options. The ISMIF32.DLL is installed as part of SMS and must be on the path.
/q n|b|r|f Sets user interface level.
  • q, qn – No UI. Use this option to specify an unattended installation.
  • qb – Basic UI level (simple progress and error handling boxes only).
  • qr – Reduced UI level (authored modeless dialog boxes only) with a modal dialog box at the end of the installation.
  • qf – Full UI level (dialog boxes, progress bars, and error messages) with a modal dialog box at the end of the installation.
  • qn+ – No UI except for a modal dialog box at the end of the installation.
  • qb+ – Basic UI with a modal dialog box displayed at the end. The modal box is not displayed if the user cancels the installation. This is the recommended option.
  • qb- – Basic UI (simple progress and error handling boxes only) with no modal dialog boxes.
/x Package/ProductCode Uninstalls a product. Use the msiexec /x /qn command to uninstall the product in unattended mode. Error or warning messages that require a user response are not suppressed when you use this option.
Notes:
  • Only public properties can be modified using the command line.
  • Msiexec command line options are case-sensitive.
  • All property names on the command line are interpreted as uppercase but the value retains case sensitivity. If you enter MyProperty at a command line, the installer overrides the value of MYPROPERTY and not the value of MyProperty in the Property table.
  • To install a product with PROPERTY set to VALUE use the following syntax on the command line. You can put the property anywhere except between an option and its argument.

    Correct syntax: msiexec /i A:\example.msi PROPERTY=VALUE

    Incorrect syntax: msiexec /i PROPERTY=VALUE A:\Example.msi

  • To customize the installation, apply a transform by setting the property TRANSFORM. For example:

    TRANSFORM="sales.mst"

  • To create a Web distribution of this product, first perform an Administrator installation to a document directory on the Web server using this command:

    msiexec /a features.msi SHORTFILENAMES=yes

    When specifying folders and file names, it is best to use short file names.

  • To install the product from the Web server, use this command:

    msiexec /I http://server/features.msi

Previous Topic Next topic Print topic