install-chrome.ps1


<#PSScriptInfo
 
.VERSION 1.0
 
.GUID 62764553-d98d-4cd7-a734-132050dafbe9
 
.AUTHOR Karsten.Bott@labbuildr.com
 
.COMPANYNAME
 
.COPYRIGHT
 
.TAGS
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
#>


<#
 
.DESCRIPTION
 This script is used during unsattended installs for chrome on windows
 
#>
 
Param()
$uri = "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B2CA098CA-A146-824F-FF8C-AEB59612F365%7D%26lang%3Dde%26browser%3D4%26usagestats%3D1%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeSetup.exe"
$Downloadfile = Split-Path -Leaf $uri
Invoke-WebRequest -Uri $uri -OutFile "$HOME/Downloads/$Downloadfile"
Start-Process -FilePath "$HOME/Downloads/$Downloadfile" -Wait