2011-09-18 14:49:34 +0000 2011-09-18 14:49:34 +0000
20
20
Advertisement

如何默默安装谷歌浏览器?

Advertisement

我想进行Google Chrome Beta的静默安装。我试过用ChromeSetup.exe/s调用/-ms下载器,但没有任何效果。

然后我下载了独立安装版,并尝试了同样的方法,但得到了同样的结果 - 静默安装不起作用。

基本上我需要的是避免安装后的对话框("选择搜索引擎")。有没有办法可以默默地选择Google?

Advertisement
Advertisement

答案 (10)

21
21
21
2013-04-03 22:20:54 +0000
  1. 下载【Chrome安装程序】(http://dl.google.com/chrome/install/375.126/chrome_installer.exe)。

  2. 像这样使用开关/silent/install

  3. 享受吧!

12
12
12
2012-02-16 16:15:28 +0000

使用 MSI 文件 q 标志进行安装,会让你进行静音安装。

7
Advertisement
7
7
2014-04-16 07:39:23 +0000
Advertisement

可以使用 Chocolatey 来静默安装Chrome。

安装Chocolatey

以管理员身份打开命令提示并发出:

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

安装Chrome

choco install googlechrome
```。
6
6
6
2012-02-29 10:22:31 +0000

对于扩展名为.msi的设置文件:

msiexec /q /i GoogleChromeStandoloneEnterprise.msi

详细信息,参见本博文

1
Advertisement
1
1
2015-02-11 21:32:28 +0000
Advertisement

如果PowerShell 2.0有一个原生的单行curl… 为了简单起见,我自己创建了一个URL,然后下载内容。如果你需要基本的 auth,我也提供了参数。

启动和运行:

1.加载PowerShell控制台 2. 在PowerShell中创建一个ps1、psm1或者简单地复制和粘贴并执行这个代码块。 3. 代码将调用Get-Url并默默执行chrome_installer.exe

注意:如果你有任何问题。

  • 确保你在管理员模式下运行PowerShell
  • C:\temp是一个现有的目录,你可以访问它(或者直接更改你的$filePath
# our curl command, with basic authentication if $credentials provided
function Get-Url {
    param(
        [string]$url, # e.g. "http://dl.google.com/chrome/install/375.126/chrome_installer.exe"
        [string]$filepath, # e.g. "c:\temp\chrome_installer.exe"
        [string]$credentials # e.g. "username:pass"
    )

    $client = New-Object System.Net.WebClient;

    if ($credentials) {
        $credentialsB64 = [System.Text.Encoding]::UTF8.GetBytes($credentials) ;
        $credentialsB64 = [System.Convert]::ToBase64String($credentialsB64) ;    
        $client.Headers.Add("Authorization", "Basic " + $credentialsB64) ;
    }    

    $client.DownloadFile($url, $filepath);
}

# curl and run silent install
Get-Url http://dl.google.com/chrome/install/375.126/chrome_installer.exe c:\temp\chrome_installer.exe ;
c:\temp\chrome_installer.exe /silent /install ;
```。
1
1
1
2015-09-17 20:19:41 +0000

这工作非常完美 - 在Windows 10 EDU 64位上使用PDQ Deploy在10台笔记本电脑上同时测试。也可以与离线安装程序chromestandalonesetup.exe一起工作,标签为/silent /install on PDQ Deploy

msiexec.exe /i "\tabeguache\c$\PDQ Deploy Packages\googlechromestandaloneenterprise64.msi" /quiet /passive

我强烈建议安装免费的PDQDeploy。只要下载MSI,然后输入上面的自定义安装命令,选择你想安装的电脑。它可以安装到你想要的任何一台电脑上,一次排队8台,无需接触电脑,无论是否有人登录到机器上。如果你还安装了PDQInventory,你可以将它安装到所有Domain工作站上,点击次数少得出奇。

1
Advertisement
1
1
2016-02-05 02:17:19 +0000
Advertisement

不知道这是否是你想要的,但是。

choco install chrome

0
0
0
2015-04-28 18:51:00 +0000

试图通过MSI安装Google Chrome v42,我使用本帖中的静默安装命令都失败了。当我手动运行MSI时,我发现它弹出了一个UAC提示,并且由于UAC提示被阻止,导致静默安装失败。

这是一篇非常好的【文章】(http://csi-windows.com/blog/all/27-csi-news-general/335-how-to-silence-the-uac-prompt-for-per-machine-msi-packages-for-non-admins)解释MSI和UAC之间关系的文章。

0
Advertisement
0
0
2015-10-21 07:21:14 +0000
Advertisement

你需要使用这个命令:

start /wait msiexec /i "%~dp0%googlechromestandaloneenterprise.msi%" /qn /l*

首先下载msi文件。

更多信息请阅读本文

0
0
0
2016-10-30 00:33:32 +0000

您可以使用以下Powershell单行代码在任何现代Windows操作系统上 “默默地安装 "Google Chrome:

$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)

好吧,从技术上讲,这不是一个单行代码,但它的工作原理就像它一样。即使IE增强型安全系统被打开,它也会工作,因此,当IE会阻止您下载Chrome时,它对Windows Server的全新安装非常有用。

你也可以 阅读这里 了解更多信息。

Advertisement

相关问题

16
1
18
10
4
Advertisement