LoginSignup
4
4

More than 5 years have passed since last update.

Windows 7 で IEを起動せずにChromeをダウンロードする(PowerShell)

Posted at

「IEを普段使わない。強いて言えば初めてその環境で他のブラウザをダウンロードするときだけ」
という人もいるそうです。

もしかしたら、できればIEを起動すらしたくないという人かもしれません。
そんな場合。
ここではIEを起動せずChromeのセットアップブログラムを
ダウンロードしてインストールを始めます。

chromedownload.ps1
$webclient = New-Object System.Net.WebClient
$url = "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BB893F592-87F3-86BB-FF97-7BE12F83B3B8%7D%26lang%3Dja%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers/update2/installers/ChromeSetup.exe"
$file = "./ChromeSetup.exe"
$webclient.DownloadFile($url,$file)
& $file
4
4
0

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
  3. You can use dark theme
What you can do with signing up
4
4