How do I force the Windows MSI installer to perform a complete install?

2

1

I have a Windows MSI installer package which gives me the choice to do a Typical, Custom or Complete install using the GUI.

The default (typical) install only installs some components.

How to I tell it to do a complete install from the command line using the /passive switch?

The installer version is: 5.0.7600.

Kev

Posted 2011-02-02T16:05:05.017

Reputation: 1 922

Answers

2


UPDATE June 2018: Although the tool shown below is no longer available for download, I found it via Wayback machine. I assume it is OK and legal to link to it, seeing as the tool was freeware. Updated links below.

UPDATE: This tool from Wise is regrettably not downloadable anymore. I am not sure if it is OK to distribute it either. It seemed to be a free tool distributed as part of their main Wise Package Studio suite, but I don't think it is open source. I wish they would release it as an open source tool.

The Wise packaging products have been discontinued due to a number of legal issues.


On a related note. To deal with the ridiculously complex command line for msiexec.exe you can use this free msi command line builder tool from Wise: http://www2.wise.com/filelib/WICLB.exe (resurrected from Wayback machine).

Please run the download by virustotal.com for safety.

It allows you to build a command line interactively: enter image description here

Stein Åsmul

Posted 2011-02-02T16:05:05.017

Reputation: 969

1

Try adding ADDLOCAL=ALL to the overall msiexec.exe command. Something like:

C:\Windows\system32\msiexec.exe /I "D:\winzip112.msi" /QN ADDLOCAL=ALL

More details: http://msdn.microsoft.com/en-us/library/aa367536(v=vs.85).aspx

Stein Åsmul

Posted 2011-02-02T16:05:05.017

Reputation: 969

1that link says "Do not enter ADDLOCAL=ALL into the Property Table, because this generates a locally installed package that cannot be correctly removed" – None – 2013-01-28T15:58:43.320

1@rik that means do not insert it into the MSI file. Properties passed on the commandline don’t go in the property table. – kinokijuf – 2013-01-28T16:48:37.907

@user193452: yes, don't set ADDLOCAL in the Property table, set it on the command line for msiexec.exe. Very different operations. – Stein Åsmul – 2014-01-29T21:55:43.973

-1

It depends on the installer as to what command switches will work. Typically, the /passive switch does a full install. However, sometimes you need to set properties in order to trigger it, and the properties are not always available online.

Check out: http://www.instedit.com/

Using this program you can open up MSI packages and alter the properties to set them to what you want. The good part is you can resave the MSI package so your property values can be reused, which is great for deployment. It says you have to pay but just download the free version and your good. It has a slight learning curve, but it is not too difficult. The search feature is your friend!

Lee Harrison

Posted 2011-02-02T16:05:05.017

Reputation: 2 046

If you are going to downvote, please give an explaination as to why. I use InstEd to open MSIs all the time when the standard switches don't work as expected. – Lee Harrison – 2013-01-28T18:49:09.693