Google Chrome —— 使用 PowerShell 命令安装 Google Chrome 浏览器

来自编程技术交流中心(QQ群:167998652)——StarSky_STZG
本文链接: https://blog.csdn.net/weixin_43272781/article/details/102666803

 PowerShell命令

$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path\$Installer

格式化 

$Path = $env:TEMP;
$Installer = "chrome_installer.exe";
Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer;
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path\$Installer

参考文章

https://www.yuque.com/antiy/study-notes/powershell-chrome

https://blog.csdn.net/weixin_42644062/article/details/96478348

https://medium.com/@uqualio/how-to-install-chrome-on-windows-with-powershell-290e7346271

猜你喜欢

转载自blog.csdn.net/weixin_43272781/article/details/102666803