Cheatography
https://cheatography.com
Lists commonly used MSIEXEC command line options
General Syntaxmsiexec /Option <Required Parameter> [Optional Parameter] |
Install Options/i | Installs a Product | /a | Administrative install - Installs a product on the network | /t | Use Transform List (.MST) | /x | Uninstalls the product |
Display Options/quiet | Quiet mode, no user interaction | /passive | Unattended mode - progress bar only | /qn | No UI | /qb | Basic UI | /qr | Reduced UI | /qf | Full UI (default) | /help | Help information |
Restart Options/norestart | Do not restart after the installation is complete | /promptrestart | Prompts the user for restart if necessary | /forcerestart | Always restart the computer after installation |
Repair OptionsSyntax | /f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode> | /fp | only if file is missing | /fo | if file is missing or an older version is installed (default) | /fe | if file is missing or an equal or older version is installed | /fd | if file is missing or a different version is installed | /fc | if file is missing or checksum does not match the calculated value | /fa | forces all files to be reinstalled | /fu | all required user-specific registry entries (default) |
| | Logging OptionsSyntax | /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile> | /li | Status messages | /lw | Nonfatal warnings | /le | All error messages | /la | Start up of actions | /lr | Action-specific records | /lu | User requests | /lc | Initial UI parameters | /lm | Out-of-memory or fatal exit information | /lo | Out-of-disk-space messages | /lp | Terminal properties | /lv | Verbose output | /lx | Extra debugging information | /l+ | Append to existing log file | /l! | Flush each line to the log | /l* | Log all information, except for v and x options |
Multiple uses of the above switches may be combined behind a single "/l" (/lawe)
Update OptionsSyntax | /update <Update1.msp>[;Update2.msp] | /p or /update | Applies update(s) | /uninstall | Remove update(s) for a product |
Misc Options/j | Advertises a product | /m | Generates an SMS status .mif file | /? or /h | Displays help | /z | Calls the system function DllUnRegisterServer to unregister modules passed in on the command line | /c | Advertises a new instance of the product | /n | Specifies a particular instance of the product |
| | ExamplesBasic Installation | msiexec /i A:\Example.msi | Installation & Apply Patch | msiexec /i A:\Example.msi PATCH=msipatch.msp | Installation Files | msiexec /a A:\Example.msi | Installation with Transform | msiexec /i A:\Example.msi /T transform.mst | Installation With Logging | msiexec /i A:\Example.msi /LIME logfile.txt | 100% Silent Installation | msiexec /i A:\Example.msi /qn | Installation Only Showing Progress | msiexec /i A:\Example.msi /qb | Uninstall Using Installer File | msiexec /x A:\Example.msi | Uninstall Using Product Code | msiexec /x {Installed App's Product Code} | Install & Suppress Restart | msiexec /i A:\Example.msi /norestart | Install & Force Restart | msiexec /i A:\Example.msi /forcerestart |
Correct Syntax Examplesmsiexec /i msisample.msi /T transform.mst /qn | msiexec /i A:\Example.msi PATCH=msipatch.msp;msipatch2.msp /qb | msiexec /x {Installed App Product Code} /qn | msiexec /i msisample.msi PATCH=msipatch.msp /qb | msiexec /JM msisample.msi /T transform.mst /LIME logfile.txt |
|
Created By
www.guidesforit.com
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets