Command Line Switches for MSI and MSP Installations

September 11, 2009

thumbHi Folks, Its time for yet another Guest Post; and we have Bhuvana writing for us. In this article she focuses on the command line arguments and the silent switches that can be used for msi and msp (un-installable patches). Bhuvana specializes in InstallShield & MSI Installers and her primary responsibility at work is “Build & Release” which includes creating Setups and Source Control Management.

She keeps all the details crisp in this table. I know that, this below chart will be as a printed one.. in your desks !!

Install / Uninstall Command Line Option Silent Mode
MSI – Installation  msiexec /i “<msi file name with path>” [TRANSFORMS="<mst file name with path>"]  msiexec /i “<msi file name with path>” [TRANSFORMS="<mst file name with path>"] /qn
MSI – UnInstallation  msiexec /x <ProductGUID> msiexec /x <ProductGUID> /qn
MSP – Installation Command line with Progress dialog:
msiexec /p “<msp file name with path>” /qb
msiexec /p “<msp file name with path>” /qn
Command line with UI:
msiexec /p “<msp file name with path>” REINSTALLMODE=oums REINSTALL=ALL
MSP – Uninstallation Command line with Progress dialog:
Msiexec /package <ProductGUID> MSIPATCHREMOVE=<PatchGUID> /qb
msiexec  /I <ProductGUID> MSIPATCHREMOVE=<PatchGUID> /qn
Note:

  1. Patch uninstallation does not work without /qb option. i.e. Patch can be uninstalled from command line only in silent mode. If you want to invoke the UI for uninstallation, go to Add / Remove Programs with Show Updates enabled.
  2. Msiexec /uninstall <PatchGUID> /package <ProductGUID> /passive
    The above command removes the entire base product but not the Patch alone.

Bhuvana’s Thought on Msigeek.com:
I came across MSIgeek blog through linkedin groups. Good to see lots of articles and FAQs on MSI at one stop. Some of the articles definitely helps to give a better insight into the concepts. So felt like contributing some article, which would help people like us, the Packaging specialists.

If you want to get in touch, her LinkedIn Profile is - Here. (PS: Do mention in the LinkedIn request that, you read her article on msigeek. We do not want to give her un-necessary Spams :-) )

If you’re not a subscriber, you can have msigeek blog notifications delivered to you free via these below options:
RSS Updates , Email Updates and SMS Alerts.

{ 15 comments… read them below or add one }

1 Vivek September 11, 2009 at 2:35 PM

Good article,

Small doubt, any idea Why Ptach uninstallation doesnot work without “/qb” option?

Thanks Bhuvana for this article in MSIGeek, I am also a fan of MSIGeek.

VJ,

Thanking you :) If any plan posting article on creating TRANSORMS? will help much profs like me to learn basics of packaing

Reply

2 AnandK September 11, 2009 at 2:52 PM

Nice article, sure will be of use to Admins.

Reply

3 Sachin J September 11, 2009 at 2:59 PM

Good one.I attached this printout on my desk.

Reply

4 Bhuvana September 11, 2009 at 3:09 PM

Hi Vivek

Thanks for your feed back.
If you enter the command 'Msiexec /package <ProductGUID> MSIPATCHREMOVE=<PatchGUID>' without /qb option, it displays the maintenance dialog.

Regards
Bhuvana

Reply

5 anilm2010 September 11, 2009 at 3:13 PM

Awesome post Bhuvana :-)

Reply

6 rishumehra September 11, 2009 at 3:20 PM

Very gud.. its quite informative..

Reply

7 shanthi September 11, 2009 at 4:24 PM

very useful and informative article.

Reply

8 Bhuvana September 11, 2009 at 5:22 PM

I am glad that it was useful

Reply

9 rodolfuuu September 12, 2009 at 10:01 AM

Great Post Vj, an aditional comment, you can set to install more than one msp file in the same command line, with ; between the msp filename. Example: msiexec /p “name1.msp”;”name2.msp” /qn

Reply

10 msigeek September 12, 2009 at 11:13 AM

Thanks for your addition buddy.! Well, Bhuvana gets the credit for this nice post (not me) he he..!!

Reply

11 msigeek September 12, 2009 at 11:14 AM

Thanks for supporting the blog Vivek. Your idea is really soooper cool. We will write an article on MST (Transforms) and post it soon.

Reply

12 suchikant September 12, 2009 at 5:22 PM

very useful article

Reply

13 Vivek September 14, 2009 at 7:53 PM

@ Bhuvana,

Thanks a lot on clarifying the doubt

@ VJ,

Great VJ, learning abcd of Packaging now. This blog alwayz a handbook for me. Your tech updates and Winodows 7 articles are sooper :)

Reply

14 Pinaki M September 16, 2009 at 11:36 AM

Very useful article …

Reply

15 payday loans February 21, 2010 at 4:31 AM

I want to thank the blogger very much not only for this post but also for his all previous efforts. I found http://www.msigeek.com to be greatly interesting. I will be coming back to http://www.msigeek.com for more information.

Reply

Leave a Comment

Previous post:

Next post: