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

20,374

Solution 1


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

Solution 2

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

Share:
20,374

Related videos on Youtube

Ben Collier
Author by

Ben Collier

###Actively looking for freelance work ###About Me: I'm a professional software developer and have spent my time building provisioning and web based self-service systems for IIS, Apache and Citrix XenServer, amongst other things. My Curriculum Vitae can be viewed on Stack Overflow Careers (might be a bit out of date). Stuff I like to listen to at last.fm You can get in touch here: kevin.e.kenny #@# gmail.com (you know what to do with the # and spaces). No Survey Emails Please. Also not ashamed to admit I like trains, mostly diesels, late Era 8 (BR Sectorisation) and Era 9 onwards :) I'm also interested in signalling if anyone from Network Rail is looking this far down ;)

Updated on September 17, 2022

Comments

  • Ben Collier
    Ben Collier over 1 year

    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.

  • Admin
    Admin over 11 years
    that link says "Do not enter ADDLOCAL=ALL into the Property Table, because this generates a locally installed package that cannot be correctly removed"
  • kinokijuf
    kinokijuf over 11 years
    @rik that means do not insert it into the MSI file. Properties passed on the commandline don’t go in the property table.
  • Lee Harrison
    Lee Harrison over 11 years
    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.
  • Stein Åsmul
    Stein Åsmul over 10 years
    @user193452: yes, don't set ADDLOCAL in the Property table, set it on the command line for msiexec.exe. Very different operations.