Windows Installer command line arguments

The following information is available in more detail from the Windows Installer SDK. The most common options and parameters are presented here to enable you to easily organize and customize your deployment options.

Option Parameters Definition
/i {package|ProductCode} Installs or configures a product.
/a package Administrative installation option.
/f

[p][o][e][d][c][a][u][m][s][v]{package|ProductCode}

Repairs a product. This option ignores any property values entered on the command line.
p
Reinstall only if file is missing.
o
Reinstall if file is missing or if an older version is installed.
e
Reinstall if file is missing or an equal or older version is installed.
d
Reinstall if file is missing or a different version is installed.
c
Reinstall if file is missing or the stored checksum does not match the calculated value.
a
Force all files to be reinstalled.
u
Rewrite all required user-specific registry entries.
m
Rewrite all required computer-specific registry entries.
s
Overwrite all existing shortcuts.
v
Run from source and recache the local package.
/x {package|ProductCode}
x
Uninstalls a product.
/L

[i][w][e][a][r][u][c][m][p][v][+][!]logfile

Specifies the path to the log file. The following flags are:
i
Status messages
w
Non-fatal warnings
e
All error messages
a
Startup of actions
r
Action-specific records
u
User requests
c
Initial user interface parameters
m
Out-of-memory
p
Terminal properties
v
Verbose output
/p PatchPackage Applies a patch. To apply a patch to an installed administrative image you must combine options as follows:
/p
PatchPackage
/a
package
/q {n | b | r | f} In conjunction with /i (install) or /x (uninstall), sets the user interface level.
qn
No user interface.
qb
Basic user interface.
qr
Reduced user interface with modal dialog box displayed at the end of installation.
qf
Full user interface with modal dialog box displayed at end of installation.
qn+
No user interface except for modal dialog box displayed at end of installation.
qb+
Basic user interface with modal dialog box displayed at end of installation.
qb-
Basic user interface with no modal dialog boxes.
Note: /qb+- is not a supported user interface level. The modal dialog box does not display if the user cancels the installation.