Command Line MSIEXEC
Command Line MSIEXEC
This tool gives you full control over the installation process, allowing you to set: install options (install, uninstall, ad inistrative install, advertise a product! display options (full, "asic or no #I during the installation! restart options (if the achine will "e restarted after the installation! logging options update options (apply or re ove updates! repair options (only for an installed package! pu"lic properties which are used "y the installation of the sie$ec co and line is this:
Install Options
When launching an installation package, you can set the install type through these options:
Sa ple co
Display Options
The user interface level of the installation can "e configured according to the target environ ent. &or e$a ple, a package distri"uted to clients should have a full #I, while a package deployed through 'roup Policy should have no user interface. Msie$ec.e$e sets the #I level of the installation through these options:
Sa ple co
Restart Options
So eti es an installation overwrites files which are in use or needs to re"oot the achine in order to finish it. The re"oot policy used "y the installation can "e set through these options:
Sa ple co
Logging Options
When de"ugging an installation package you can use para eter you use: ultiple logging para eters
in order to create a log. This log will contain different infor ation for each
<path_to_log>
/L % ena"le logging o i % include status essages o w % include non%fatal warnings o e % include all error essages o a % ention when an action is started o r % include action%specific records o u % include user re(uests o c % include the initial #I para eters o m % include out%of% e ory or fatal e$it infor ation o o % include out%of%disk%space essages o p % include ter inal properties o v % ver"ose output o x % include e$tra de"ugging infor ation o + % append to an e$isting log file o ! % flush each line to the log o * % log all infor ation, e$cept for v and x options /log % the e(uivalent of /l* and line:
Sa ple co
Update Options
The Windows Installer co and line can apply or re ove updates (patches for
Sa ple co
msiexec.exe /p "C !./0atch.msp" /#% 1"23456''.78"9"ecmus" 1"23456''9"6''" msiexec.exe /up-ate "C !./0atch.msp" msiexec.exe /uninstall {:;C;<=>C?C8:;?@=@8?6"<A? B=><ACDEAC:B} /package {668C8AA6?A@AE?@ED<?68<@?F@@>@:>@"D:8}
In the a"ove co
and line the first '#I/ is the Patch identifier '#I/ and
the second one is the Product 1ode of the MSI for which the patch was applied.
Repair Options
If you have an installed package, you can use the Windows Installer co line for repairing it: and
Sa ple co