Msiexec Command In Windows Server 2008

In this article I am going to explain about Msiexec command in Windows Server 2008 operating system.
  • 1764

Introduction

Msiexec is command-line tool that is built in Windows Server 2008. It provides the means to install, modify, and perform operations on Windows Installer from the command line. Msiexec command is used to create install packages for applications and programs. Basic syntax for using this command is given below.

Syntax

MSIEXEC /Option RequiredParameter [OptionalParameter]
Parameters
Option Parameter Description
/i Package|ProductCode Installs or configures the product.
/f [p|o|e|d|c|a|u|m|s|v] Package|ProductCode This parameter is used to repair the product
  • p: It reinstalls a product only if file is missing.
  • o: Reinstalls only if file is missing or product installed is of older version.
  • e: Replace if file is missing or an older or equal data files.
  • d: Replace different versions files.
  • c: Reinstalls if file is missing or based on Checksum differences.
  • a: Reinstalls all files.
  • u: Rewrites all required user-specific registry entries.
  • m: Rewrites all required computer-specific registry entries.
  • s: Recreates all existing shortcuts.
  • v: Rewrite local cache from source.
/a Package Administrative install, Install a product on the network.
/x Package!ProductCode Uninstall the product.
/j [u|m]Package
or
[u|m]Package/tTransform List
or
[u|m]Package/gLanguageID  
Advertise a product.
  • u: Advertise a product for current user.
  • m: Advertise a product to all users.
  • g: Language identifier.
  • t: Trasform to advertised package.
/l [i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] Logfile Logging options
  • i: Log status message
  • w: Log Nonfatal warnings.
  • e: Log all error messages.
  • a: Log start up of actions.
  • r: Action specific records.
  • u: User requests.
  • c: Initial UI parameters.
  • m: Out-of-memory or fatal exit information.
  • o: Out-of-disk-space messages.
  • p: Terminal properties.
  • v: Verbose mode.
  • x: Extra debugging information.
/m filename Creates an SMS status .mif file.
/p PatchPackage[;patchPackage2…] Applies patch.
/q n|b!r|f Sets user interface level.
  • q: No UI.
  • qb: Basic UI.
  • qr: Reduced UI.
  • qf: Full UI.
  • qn+: No UI.
  • qb+: Basic UI.
  • qb: Basic UI.
  • qb!: To help cancel button.
/y module Calls the system.
/z module Calls the system function DllUnRegisterServer to unregister modules passed in on the command line.
/n ProductCode

Specifies a particular instance of the product.

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.