Difference between revisions of "Msiexec"

From WineHQ Wiki
Jump to: navigation, search
(Iniitial import; some markup fixes, tweak formatting)
 
(→‎Usage: tweak formatting to improve readability)
 
Line 2: Line 2:
  
 
== Usage ==
 
== Usage ==
<pre>
+
 
  Install a product:
+
;Install a product:
 
     msiexec {package|productcode} [property]
 
     msiexec {package|productcode} [property]
 
     msiexec /i {package|productcode} [property]
 
     msiexec /i {package|productcode} [property]
 
     msiexec /a package [property]
 
     msiexec /a package [property]
  Repair an installation:
+
;Repair an installation:
 
     msiexec /f[p|o|e|d|c|a|u|m|s|v] {package|productcode}
 
     msiexec /f[p|o|e|d|c|a|u|m|s|v] {package|productcode}
  Uninstall a product:
+
;Uninstall a product:
 
     msiexec /x {package|productcode} [property]
 
     msiexec /x {package|productcode} [property]
  Advertise a product:
+
;Advertise a product:
 
     msiexec /j[u|m] package [/t transform] [/g languageid]
 
     msiexec /j[u|m] package [/t transform] [/g languageid]
 
     msiexec {u|m} package [/t transform] [/g languageid]
 
     msiexec {u|m} package [/t transform] [/g languageid]
  Apply a patch:
+
;Apply a patch:
 
     msiexec /p patchpackage [property]
 
     msiexec /p patchpackage [property]
 
     msiexec /p patchpackage /a package [property]
 
     msiexec /p patchpackage /a package [property]
  Modifiers for above operations:
+
;Modifiers for above operations:
 
     msiexec /l[*][i|w|e|a|r|u|c|m|o|p|v|][+|!] logfile
 
     msiexec /l[*][i|w|e|a|r|u|c|m|o|p|v|][+|!] logfile
 
     msiexec /q{|n|b|r|f|n+|b+|b-}
 
     msiexec /q{|n|b|r|f|n+|b+|b-}
  Register a module:
+
;Register a module:
 
     msiexec /y module
 
     msiexec /y module
  Unregister a module:
+
;Unregister a module:
 
     msiexec /z module
 
     msiexec /z module
  Display usage and copyright:
+
;Display usage and copyright:
 
     msiexec {/h|/?}
 
     msiexec {/h|/?}
</pre>
+
 
 
'''Notes:'''  
 
'''Notes:'''  
 
*Use of Product codes on commandline has not yet been implemented.
 
*Use of Product codes on commandline has not yet been implemented.

Latest revision as of 13:43, 5 March 2016

msiexec is a tool for installing .msi packages.

Usage

Install a product
   msiexec {package|productcode} [property]
   msiexec /i {package|productcode} [property]
   msiexec /a package [property]
Repair an installation
   msiexec /f[p|o|e|d|c|a|u|m|s|v] {package|productcode}
Uninstall a product
   msiexec /x {package|productcode} [property]
Advertise a product
   msiexec /j[u|m] package [/t transform] [/g languageid]
   msiexec {u|m} package [/t transform] [/g languageid]
Apply a patch
   msiexec /p patchpackage [property]
   msiexec /p patchpackage /a package [property]
Modifiers for above operations
   msiexec /l[*][i|w|e|a|r|u|c|m|o|p|v|][+|!] logfile
   msiexec /q{|n|b|r|f|n+|b+|b-}
Register a module
   msiexec /y module
Unregister a module
   msiexec /z module
Display usage and copyright
   msiexec {/h|/?}

Notes:

  • Use of Product codes on commandline has not yet been implemented.
  • Generally a product will ship with an executable (.exe file) which provides a more user friendly mechanism for installing the product. Where possible you should use the .exe provided by the application developer. The file name will usually contain "setup" or "install" in its filename.

Example(s)

msiexec /i msxml3.msi