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.
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've been working on a batch file all day, that I can't get to work open through GPO (another day, another question). So I decided to do it manually with every computer. I have two exe's and one MSI. The exe's work perfectly fine. They get installed, and it all works out. The MSI, however, doesn't. It gives me the error: the installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
Now when I go to the network share and use it from there, it works perfectly fine. So there must be an issue with my code.
Here's the code:
#echo off
IF NOT EXIST "C:\Program Files (x86)\Citrix\ICA Client\" (
pushd "\\KOPI-DC01\ACCURO Cloudwerx\ACCURO\1\"
.\CitrixReceiver-4.4.1000.exe /silent
)
IF NOT EXIST "C:\Program Files (x86)\triCerat\Simplify Printing\ScrewDrivers Client v4\" (
pushd "\\KOPI-DC01\ACCURO Cloudwerx\ACCURO\2\"
msiexec.exe /i ".\Screwdriver.msi"
)
IF NOT EXIST "C:\Program Files\Cloudwerx\CloudwerxPlugin\" (
pushd "\\KOPI-DC01\ACCURO Cloudwerx\ACCURO\3\"
.\cloudwerx-setup.exe /silent
)
pause
Any help would be greatly appreciated, thanks.
I am guessing that your problem is the distinction in powershell between the current location (set by the pushd command) and the working directory (unaffected by the pushd command). You can see the working directory of the powershell process using the [Environment]::CurrentDirectory property:
# C:\> [Environment]::CurrentDirectory = "c:\"
# C:\> [Environment]::CurrentDirectory
c:\
# C:\> pushd C:\Temp
# C:\Temp> [Environment]::CurrentDirectory
c:\
# C:\Temp> Get-Location
Path
----
C:\Temp
WHat is probably happening is that msiexec.exe is using the working directory (i.e. [Environment]::CurrentDirectory) and not the current powershell location at invocation. I would just specify the full path to msiexec:
msiexec.exe /i "\\KOPI-DC01\ACCURO Cloudwerx\ACCURO\2\\Screwdriver.msi"
MSI installation packages build with an older WIX utility would throw the error whenever installation was attempted from a batch script that was accessed on a shared drive using UNC path instead of a mapped drive letter. On the other hand whenever the batch file was executed with a mapped drive letter the installation would work normally.
I'm not blaming WIX here because I'm not certain whether they are responsible. I'm just describing symptoms here. It might just be the result of invoking plain vanilla Windows batch script that in turn executes msiexec with a bunch of command line parameters.
I just installed the new LibreOffice version, but it failed because it couldn't delete the program folder in "C:\Program Files (x86)\LibreOffice 5", so I tried removing it with the Explorer and admin CMD, didn't work. Then I opened a System command prompt with psExec -i -s cmd and tried some commands on the folder:
rd /s program
takeown /r /f program
icacls program
Every command failed with "Access denied", so how do I remove it? I know that I could just ignore the windows permission system with a Linux distribution, but that's too much effort just for removing a folder.
I would suggest using the windows uninstall tool. If for some reason you can't do that try open cmd as admin and then type rd C:\Program Files (x86)\LibreOffice 5
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.
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