Wednesday, September 17, 2008

Installation of MSP File in Silent Mode

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.

You can also use following command line to install patches like for Adobe etc.:

msiexec /update patchfile.msp /qb!

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.

For installation of MSU, which is used as update in Windows Vista and above, please follow this new post on my blog:

http://msiworld.blogspot.com.au/2012/04/silent-install-and-uninstall-of-msu.html

4 comments:

NickB said...

I actually continued to have problems installing a patch silently (a patch which worked via dialog box). I used the flags 'amus' for REINSTALLMODE, which according to the docs neat reinstall everything, and only then did my patch work silently like it did for dialog->repair.

Bhuvana said...

Hi Piyush

you can refer my article here on "Command Line switches for msi & msp installation"
http://www.msigeek.com/647/command-line-switches-for-msi-and-msp-installations

Regards
Bhuvana

Piyush Nasa said...

Thanks Bhuvana. Read the post. It is a good insight. Thanks for the input. I hope people will benefit from it.

Unknown said...

HI BHUVANA,
CAN U PROVIDE THE INFORMATION REGARDING THE DRIVERS
REGARDS,
RAM.