How to install DirectX in quiet mode? - installation

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

Related

silent installation when there is space in the folder name

I want to run silent setup from cmd, this works fine:
C:\SomeFolder\AnotherFolder>setup /s /v/qn /vINSTALLDIR="D:\targetFolder"
but when I try to install to target folder with spaces ike D:\target Folder it doesn't work.
I tried
C:\SomeFolder\AnotherFolder>setup /s /v"/qn /vINSTALLDIR="D:\target Folder""
but it doesn't do nothing
See this link, Istead of this command:
C:\SomeFolder\AnotherFolder>setup /s /v/qn /vINSTALLDIR="D:\targetFolder"
Give this a try:
C:\SomeFolder\AnotherFolder>setup /s /v"/qn INSTALLDIR=\"D:\target Folder\""

Google Chrome silent install

I need to silent install Google Chrome on virtual machine. (Windows 8.1)
I took the standalone installer from https://www.google.com/intl/en/chrome/browser/desktop/index.html?system=true&standalone=1#eula.
On virtual machine in terminal I perform the command - 'ChromeStandaloneSetup.exe'.
At the end on installation I got the window with 'Close' button.
Is there command line switch for Google Chrome to perform silent installation?
You can try to perform silent install with .msi file.
First go and download msi to : https://www.google.com/chrome/browser/desktop/index.html?msi=true
Second create a text file called install.cmd and copy in the following command lines:
#echo install Google Chrome
start /wait msiexec /i "%~dp0%googlechromestandaloneenterprise.msi%" /qn /l*
Both save to a folder in your computer and "run as administrator" install.cmd file.
If you get error please see silent install google chrome tutorial for more information.
Best Regards
Should be fairly straight forward, grab the MSI installer and use the following MSI command for a fully silent installation:
msiexec.exe /i "GoogleChromeStandaloneEnterprise.msi" /q /norestart
You can also make the following changes should you need them:
Change the /i to /x for uninstall
Change the /i to /f for a repair installation
Change the /q to /qb+ for the wizard to show but no user intervention apart from the final modal box at the end of the install
Remove the /norestart if you are happy for it to carry out a restart automatically
Source: https://blog.techygeekshome.info/2018/07/google-chrome-msi-installer-version-67-0-3396-99-release/
Source: https://learn.microsoft.com/en-us/windows/desktop/msi/command-line-options
I think this is the solution.
Run the standalone installer on a machine without Chrome (you should be able to Google for it). In your %TEMP% directory, look for something called GUM(something).tmp. Inside this directory will reside a file with a name like 154.48_chrome_installer.exe.{8A69D345-D564-463c-AFF1-A69D9E530F96}.
Copy this file somewhere network accessible. Drop the GUID from the end, restoring its EXE extension. This is the silent installer- run it and Chrome will autoinstall.
If that is not where you looking for then maybe this article gives an answer to your question.
http://blog.ringerc.id.au/2012/11/network-silent-unattended-install-of.html
This is what I use in my installation script:
start "Installing Chrome Silently" /wait "ChromeStandaloneSetup.exe" /silent /install
Requires chrome installer and script to be in the same directory, otherwise you'd need to specify the full path. OFC, with this you still have a shell window, but no chrome window is ever visible.
All of these answers were kind of halfway there for me. I thought I'd share my accumulation of all the things that did work for me. This works as of 7-5-19.
Download installer from this link: https://www.google.com/chrome/browser/desktop/index.html?msi=true
Create a text file called install.cmd and copy in the following command lines:
#echo install Google Chrome
start "Installing Chrome Silently" /wait "ChromeStandaloneSetup.exe" /silent /install
#echo Set the parameter file
#XCOPY "master_preferences" "C:\Program Files (x86)\Google\Chrome\Application\" /E /C /Q /R /Y
Create a master_preferences file as outlined here:
https://support.google.com/chrome/a/answer/187948?hl=en
Mine looks like this:
{
"homepage" : "http://www.google.com",
"homepage_is_newtabpage" : false,
"browser": {
"show_home_button" : true,
"check_default_browser" : false
}
"bookmark_bar" : {
"show_on_all_tabs" : true
},
"distribution" : {
"skip_first_run_ui" : true,
"show_welcome_page" : false,
"import_search_engine" : false,
"import_history" : false,
"create_all_shortcuts" : true,
"do_not_launch_chrome" : true,
"suppress_first_run_default_browser_prompt": true,
"suppress_first_run_bubble": true,
"system_level": true,
"make_chrome_default" : false
}
Put all the files in the same folder
Run install.cmd as admin.

MSIEXEC - difference between /quiet and /passive

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.

Command to start a process in the background and run silently

I'm trying to write a command in a bat file to run an installer exe file. The important part is to start and run the installer in silent mode. To clarify, I DO NOT want the user to see the installer and click through the wizard. They should just be able to double click the bat file and walk away. I have attempted this command in my bat file:
#echo off
REM Next command runs installer in silent mode
start /d "%USERPROFILE%\Desktop" MyInstaller_7.1.51.14.exe –s –v –qn
The –s –v –qn are supposed to enable the installer to run in the background, but they are not working.
Can anyone help me improve my command in my bat file so that MyInstaller_7.1.51.14.exe is indeed running in the background, silently, with no UI or wizard of any kind visible to the user??
Please help.
You can try one of these START command options to see if it gives you the effect you want:
/B = Start application without creating a new window
/MIN = Start window minimized
Edited:
Try putting the command with its switches inside quotes:
start /d "%USERPROFILE%\Desktop" "MyInstaller_7.1.51.14.exe –s –v –qn"
Another solution you can test :
Create a file RunHide.vbs and put this line in it :
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
and then run your batch file like this :
wscript.exe "RunHide.vbs" "Install.bat"
and your batch file will be run without any windows (and maybe your Installer to)
I finally figured it out.
Here is the correct code:
#echo off
REM Next command runs installer in silent mode
start "%USERPROFILE%\Desktop" MyInstaller_7.1.51.14.exe /s /v /qn
The change was between –s –v –qn and /s /v /qn where the former does not work, and the latter does.

How to install Node.js in custom folder silently on Windows?

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.

Resources