Silent Install Switches For Msi

  1. Silent Install Parameters For Msi
  2. List Of Silent Install Switches
  3. Silent Install Switches For Msi Pro
Active1 year ago

Msiexec /i testdb.msi INSTALLLEVEL=3 /l. msi.log COMPANYNAME='Acme 'Widgets' and 'Gizmos.' ' The following example shows advertisement options. Note that switches are not case-sensitive. Msiexec /JM msisample.msi /T transform.mst /LIME logfile.txt. The following example shows you how to install a new instance of a product to be advertised. The Zoom Desktop Client can be mass configured for Windows in 3 different ways: via the MSI installer for both configuration and installation, an Active Directory administrative template utilizing Group Policy for configuration, or via registry keys for configuration. The Silent Install options for the Windows installer (msiexec) /quiet, /q, qn: Fully silent mode /passive: Unattended mode, shows progress bar only. Silently install the msi package: msiexec /i C: setup.msi /qn. Silently install the msi package, no reboot. Msiexec /i C: setup.msi /qn /norestart. Silently install the msi package. For the majority of admins, being able to install VMware Tools using the Thick client drop-down and now from the web-client, is sufficient. However, there are times that you may want to have this scripted. To do a silent install of VMware Tools on a Windows VM you can do the following: Copy the VMware Tools Installer to a local or shared folder.

I'm creating an auto-updater that can run MSIs and EXEs. These MSIs/EXEs aren't my own. I'd like to use any unattended/silent install option if it exists. Is there some way to determine if an MSI/EXE has some sort of unattended install support and, if so, get the right argument so I can pass it to the file when I run it? I know, by default '/quiet' is the silent install option, but I'm also curious about EXEs and any MSIs that maybe have customized this option.

This question - detect msi parameters for unattended install - is similar, but the links in the answer are broken and I can't figure out from the answer what I would do.

Thanks.

Community
ChadChad
2,0474 gold badges23 silver badges37 bronze badges

3 Answers

If it's MSI, then the parameters are standard, you can get the list of options with msiexec /? or view the docs on MSDN.

There's no way to detect options for an arbitrary EXE which options it supports, if any. Try to find docs from the vendor, or try /? switch…

Alexey IvanovAlexey Ivanov
10.2k4 gold badges33 silver badges55 bronze badges

Just run through the installer with logging turned on and it will show you all of the possible parameters that the specific MSI accepts.

For example:msiexec /log logfile.txt /i installer.msi

Silent Install Parameters For Msi

Run through the entire installer and the logfile.txt will show you the passable parameters as 'Property(S)' or 'Property(C)' with the name in all caps.

Source:http://www.codeproject.com/Articles/16767/How-to-Pass-Command-Line-Arguments-to-MSI-Installe

matt wilkie
6,78219 gold badges60 silver badges89 bronze badges
Jon HeeseJon Heese

(Note: I posted a variation of this response on the detect msi parameters for unattended install question you mentioned.)

There's lessmsi, is a great tool that certainly works here if you're willing to use a GUI and do some manual investigation.

You can try the following command:

..But it's unlikely that the above will have everything you're looking for.

One way to essentially guarantee that you get all the possible properties is to actually perform either an installation, repair, or uninstall with the MSI file and log the process as mentioned in Jon Heese's answer.

If you want less text to sift through in the log file, you can set the log setting to log only the properties:

or

2 player shooting games pc

I prefer a method that bypasses the need of install/remove/repair-ing through 'extraction'. The advantages this method has over lessmsi is that it doesn't require a 3rd-party utility (i.e. lessmsi), and it doesn't require you to mess with any installations. You do need to have enough disk space to actually install the program (and probably some additional space, to be safe). Then you can do something like:

Instagram album downloader. Note that the <absolute_path_to_extract_to> can point to a nonexistent directory (the command will create the directories necessary or fail).

If you hate the installation UI for whatever reason you can append the /qr option, which will 'reduce' and possibly eliminate the UI without impairing the property logging process. Be warned however--if you go 'lower' than the reduced UI (viz. /qb/passive or /qn/quiet), your <msi_property_logfile> may be missing some properties.

The following command can effectively produce a Property log file for each MSI file in some directory (use DIR /B rather than DIR /B/S to not recurse subdirectories; remove the RD command if you want to keep the extracted files):

and if you want to run that in PowerShell for whatever reason, use the command below instead:

Switches

Once the process has finished, you simply open up the logfile and note the lines beginning with Property(S):/Property(C):as Jon Heese mentioned.

Generally speaking, the parameters/properties that can be set for an install are logged in ALL CAPS; for example, ALLUSERS can be set ALLUSERS=1 so that the installation is for all users.

List Of Silent Install Switches

YenForYangYenForYang

Silent Install Switches For Msi Pro

Not the answer you're looking for? Browse other questions tagged windows-installerexeunattended-processing or ask your own question.