Installation of MSP File in Silent Mode

Installation of MSP File in Silent Mode
piyushnasa's picture

The best way to install an MSP file in silent installation is with the following command line:

msiexec /p patchfile.msp REINSTALL=ALL REINSTALLMODE=omus

But if you do not give the command line options of REINSTALL and REINSTALLMODE then it will not patch the existing installation package. What it will do is update the locally cached copy of the MSI database.

If you run the MSP in UI mode then it will patch the installation and will also update the locally cached copy of the installation, because when the dialogs are run they in turn set REINSTALL and REINSTALLMODE.

3.42857
Average: 3.4 (14 votes)

hmmmmm..

blacklisted_packager's picture

just wondered why not to use ....
msiexec /update name.msp /qn.
Have used it quiet a few times with success.And also have noticed that
msiexec /p patchfile.msp ...........
might require the base msi path in case the msi is not smarty authored.

equivalent to

chinkuree's picture

The equivalent Windows Installer command line has PATCH = [msipatch.msp]<;PatchGuid2> set on the command line. Check this MSDN page:
http://msdn.microsoft.com/en-us/library/aa372024.a...