So according to msdn
Quiet mode, no user interaction
/quiet
Unattended mode - progress bar only
/passive
so if I want to install MSI i usually use /qn /quiet and everything goes fine.
Just want to know what is /passive used for.
one thing That I see sometime that in msdn i just see /q is this the same as /qn
dotNetFx45_Full_x86_x64.exe /q /norestart
https://msdn.microsoft.com/en-us/library/ee942965%28v=vs.110%29.aspx
/qn no UI
/quiet no user interaction
/passive unattended mode (only progress bar)
Strictly speaking the dotNet Fx install you mention is a bootstrapper and isn't an msi or msiexec. It does call a number of internal MSIs and mostly accepts switches and pass arguments in a manner consistent with MSI but it is not MSI.
/q{n | b | r | f | n+ | b+ | b-} was introduced in MSI 1.0 where /passive and others were introduced in 3.0 to make it easier for the common scenarios to be called. For example /passive is equivalent to /qb!- REBOOTPROMPT=S
One thing to note about /QN vs /QB is that /QN can't perform a UAC elevation prompt because it has no UI. It'll simply return a failure code. /QB can because it has a UI.
Reference: Standard Installer Command-Line Options
When MSI 3.0 came out I believe they were going to create a set of command line options that would apply to all installations, so passive would work on MSI-based setups as well as others. So passive is the equivalent of /qb (or something close to that). I prefer the older /q options because they are more explicit about what is shown and with more choices. Just use the commands that work for you.
Typically, /passive displays a progress bar and /quiet does not. But it can vary depending on the contents of the MSI.
Related
On Windows 10, I have tried to do a silent install of an msi package, but the install simply fails without any error.
Here are my commands to get the msi in zip format, unzip, and then install.
wget -q http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Win64_200602.msi_.zip
cmake -E tar -xf KDU805_Demo_Apps_for_Win64_200602.msi_.zip
msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /quiet /qn /norestart
Edit: I logged output to file, and found this error
MSI (s) (64:AC) [09:15:20:332]: Product: Kakadu Demo-Apps -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation.
The Windows Installer is a "Windows application" (as opposed to a "console application") which means starting it from the command-line will not cause the console to wait. To wait, you need to explicitly wait for the process to exit. One easy way is:
start /wait "" msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /qn /norestart
Note: The empty string "" is important if you ever need to quote the command-line to start. Otherwise, the start command will use your quoted command-line as the title of the created window (crazy, I know, check start /? for the details).
I create a script to auto install all my dev stack on Windows.
I have a problem with Node.js
What's the command line to install node-v0.10.23-x64.msi in C:\Tools silently?
Thanks.
I found it.
This is the correct way to install Node.js on Windows silently in a custom directory.
msiexec.exe /i node-v0.10.23-x64.msi INSTALLDIR="C:\Tools\NodeJS" /quiet
msiexec.exe /i node-v0.10.23-x64.msi /qn
/i means normal install
/qn means no UI
I do not known how to set the destination, you can read documentation here, and check if msi supports it:
http://www.advancedinstaller.com/user-guide/msiexec.html
This will do the exact installation as doing it manual from the UI
msiexec /i node-v6.11.2-x64.msi TARGETDIR="C:\Program Files\nodejs\" ADDLOCAL="NodePerfCtrSupport,NodeEtwSupport,DocumentationShortcuts,EnvironmentPathNode,EnvironmentPathNpmModules,npm,NodeRuntime,EnvironmentPath" /qn
To expand a little on foozar's answer, which works.
msiexec.exe /i node-v0.10.23-x64.msi INSTALLDIR="C:\Tools\NodeJS" /quiet
Note that /quiet may be better replaced with /passive:
Passive shows the status bar, and more importantly, prompts the user for the admin password if needed.
Quiet mode will just fail if the installer doesn't have privileges.
How do I install to a non default web site with a silent MSIEXEC installation?
Given the lack of information in your question, all I can say is something like this:
msiexec /i YOURPACKAGE.msi /qn
If you need to pass parameters, you can define them on the commandline:
msiexec /i YOURPACKAGE.msi /qn THISWEBSITE=http://example.com
I have an application which was deployed some time ago using an .msi and a .mst
When I now try to uninstall the app using msiexec /x name_of_msi TRANSFORMS=name_of_mst /qb! I get a prompt asking if I would like to remove the ini files which were installed. Is there any way to uninstall the application and answer "Yes" to the prompt using a vbscript.
Thanks
G
Have you tried employing the /passive or /quiet switch?
/quiet - quiet mode (no user interaction)
/passive - unattended mode (progress bar only)
/q - set the UI level:
n - no UI
b - basic UI
r - reduced UI
f - full UI
Try:
msiexec /x name_of_msi TRANSFORMS=name_of_mst /qn /quiet
or
msiexec /x name_of_msi TRANSFORMS=name_of_mst /qn /passive
I want to install the DirectX 9c user package in quiet mode. Is there any option like /quiet /q /qb etc.
None of these worked.
Note:
With this file DXSETUP.exe /q
not the extractor file directx_9c_redist.exe /q ( this works fine.)
Try this (taken from MSDN):
Set up silently.
Launch setup in silent mode so that users do not accidentally skip
updating the DirectX runtime. You can
do this by launching dxsetup.exe with
the following command:
path-to-redistributable\dxsetup.exe
/silent
or by calling DirectSetup and not showing any UI.
If you are using DX11 installer from here:
https://www.microsoft.com/en-in/download/details.aspx?id=35
/silent will result in an error. You need to use /Q
Yeah,
it works fine as you launch the DXSETUP.exe in the windows command prompt (>cmd).
If I give it something like this:
>call "C:\Users\John\Desktop\DirectX_11\DXSETUP.exe" /silent