LoginSignup
16

More than 3 years have passed since last update.

コマンドでWindowsにChromeをインストールする

Posted at

背景

Windows Serverを新しくたてた時に、Chromeをインストールするのが面倒だったので、コマンドでインストールしたかった。
IEでChromeのインストーラを落とそうとすると、インターネットプロパティいじらないといけないから面倒なんですよね。

スクリプト

下記、 PowerShellで動きます。

sh
$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26browser%3D0%26usagestats%3D1%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26brand%3DGTPM/update2/installers/ChromeSetup.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path\$Installer

元ネタ: https://www.youtube.com/watch?v=M0qX46M3mnE

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
16