![]() ![]() I wonder if Google has a generic URL that always redirects to the installer for current build of chrome. Also, I believe this will always download the exact same version of chrome (375.126), so it would become outdated almost immediately. I think the variables cost more scripting than they save in this example. I bet you could simplify it by skipping the variables, and just using an explicit path and file name. I'm not very familiar with Powershell, but basically it looks like you are setting up variables for a path (the temp folder in this case) and a file name, downloading a specific version of the chrome installer, running the file in silent mode, and then deleting the file once it's done. $Path = $env:TEMP $Installer = "chrome_installer.exe" Invoke-WebRequest " " -OutFile $Path$Installer Start-Process -FilePath $Path$Installer -Args "/silent /install" -Verb RunAs -Wait Remove-Item $Path$Installer TLDW: dump the following string into a powershell prompt (running as admin). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |