windows 谷歌浏览器静默安装
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33934770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Google Chrome silent install
提问by mlosev
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.
我需要在虚拟机上静默安装 Google Chrome。(Windows 8.1)我从https://www.google.com/intl/en/chrome/browser/desktop/index.html?system=true&standalone=1#eula 获取了独立安装程序。
在终端中的虚拟机上,我执行命令 - 'ChromeStandaloneSetup.exe'。在安装结束时,我得到了带有“关闭”按钮的窗口。
Is there command line switch for Google Chrome to perform silent installation?
谷歌浏览器是否有命令行开关来执行静默安装?
回答by Klodi
You can try to perform silent install with .msi file.
您可以尝试使用 .msi 文件执行静默安装。
First go and download msi to : https://www.google.com/chrome/browser/desktop/index.html?msi=true
首先去下载 msi 到: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:
其次创建一个名为 install.cmd 的文本文件并复制到以下命令行中:
@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.
两者都保存到您计算机中的文件夹并“以管理员身份运行” install.cmd 文件。
If you get error please see silent install google chrometutorial for more information.
如果出现错误,请参阅静默安装 google chrome教程以获取更多信息。
Best Regards
此致
回答by ArchiveGemmell
Should be fairly straight forward, grab the MSI installer and use the following MSI command for a fully silent installation:
应该相当简单,获取 MSI 安装程序并使用以下 MSI 命令进行完全静默安装:
msiexec.exe /i "GoogleChromeStandaloneEnterprise.msi" /q /norestart
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
将 /i 更改为 /x 以进行卸载 将 /i 更改为 /f 以进行修复安装 将 /q 更改为 /qb+ 以显示向导,但除了安装结束时的最终模式框外没有用户干预
Remove the /norestart if you are happy for it to carry out a restart automatically
如果您对它自动执行重新启动感到满意,请删除 /norestart
Source: https://blog.techygeekshome.info/2018/07/google-chrome-msi-installer-version-67-0-3396-99-release/
来源:https: //blog.techygeekshome.info/2018/07/google-chrome-msi-installer-version-67-0-3396-99-release/
Source: https://docs.microsoft.com/en-us/windows/desktop/msi/command-line-options
来源:https: //docs.microsoft.com/en-us/windows/desktop/msi/command-line-options
回答by Roro
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.
所有这些答案对我来说都差不多。我想我会分享我对所有对我有用的东西的积累。这适用于 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=enMine looks like this:
- 从此链接下载安装程序:https: //www.google.com/chrome/browser/desktop/index.html?msi=true
创建一个名为 install.cmd 的文本文件并复制到以下命令行中:
@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
创建一个 master_preferences 文件,如下所述:https: //support.google.com/chrome/a/answer/187948?hl=en 我的看起来像这样:
{
"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
}
{
"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.
将所有文件放在同一个文件夹中
以管理员身份运行 install.cmd。
回答by Drew Reese
This is what I use in my installation script:
这是我在安装脚本中使用的:
start "Installing Chrome Silently" /wait "ChromeStandaloneSetup.exe" /silent /install
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.
要求 chrome 安装程序和脚本位于同一目录中,否则您需要指定完整路径。OFC,有了这个,你仍然有一个外壳窗口,但看不到镀铬窗口。
回答by CodeNinja
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}.
在没有 Chrome 的机器上运行独立安装程序(您应该可以通过 Google 搜索)。在您的 %TEMP% 目录中,查找名为 GUM(something).tmp 的内容。在此目录中将驻留一个文件,其名称类似于 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.
将此文件复制到网络可访问的地方。从末尾删除 GUID,恢复其 EXE 扩展名。这是静默安装程序 - 运行它,Chrome 将自动安装。
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
如果那不是您要找的地方,那么这篇文章也许可以回答您的问题。 http://blog.ringerc.id.au/2012/11/network-silent-unattended-install-of.html