Active12 months ago
- 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.
- Not only does it do the silent install, it also captures a verbose log of the install. Now that you know how to execute a MSI silently, the next step is to run that on a remote system. See my post on Installing remote software on how to approach that.
- 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.
I have a MSI package that I need to install if the package is not already installed. Also I need to install it silently. The package prompts user for:
Silent or Unattended Installation. Jump to bottom. It is possible to install Git for Windows silently using the following flags when called from a command-line prompt. And by inspecting the install.iss file (for custom options added only to Git for Windows' installer).
Msi Silent Switch
- Installation location (C:Program FilesFoobar)
- Install type: minimal and full (minimal)
I need to override these two parameters using command line parameters or some other method. So how do I go about these two issues. I'll use VBScript for scripting.
Stein Åsmul25.7k1515 gold badges6161 silver badges129129 bronze badges
Salman A![Switches Switches](/uploads/1/2/4/9/124907745/722613583.jpg)
Silent Install Switch For Msi
196k6969 gold badges358358 silver badges456456 bronze badges
2 Answers
You should be able to use the
/quiet
or /qn
options with msiexec
to perform a silent install. Free metastock data download for windows 10.MSI packages export public properties, which you can set with the
PROPERTY=value
syntax on the end of the msiexec
parameters.Silent Install Switches For Msi Download
For example, this command installs a package with no UI and no reboot, with a log and two properties:
You can read the options for
PolynomialPolynomialmsiexec
by just running it with no options from Start -> Run.21.8k66 gold badges6969 silver badges100100 bronze badges
The proper way to install an MSI silently is via the
msiexec.exe command line
as follows:Quick explanation:
There is a much more comprehensive answer here: Batch script to install MSI. This answer provides details on the msiexec.exe command line options and a description of how to find the 'public properties' that you can set on the command line at install time. These properties are generally different for each MSI.
Stein ÅsmulStein Åsmul25.7k1515 gold badges6161 silver badges129129 bronze badges