Skip to content

Instantly share code, notes, and snippets.

@rz3n
Created November 15, 2021 16:47
Show Gist options
  • Save rz3n/ebbf19617992c3cf09e4f68042206691 to your computer and use it in GitHub Desktop.
Save rz3n/ebbf19617992c3cf09e4f68042206691 to your computer and use it in GitHub Desktop.
Powershell script to update Chromium
$CHROMIUM_URI = "https://download-chromium.appspot.com/dl/Win_x64?type=snapshots"
$LOCALAPPDATA = Get-content -Path Env:LOCALAPPDATA
$LOCALPROGRAMS = $LOCALAPPDATA+"\Programs"
$TEMP = Get-content -Path Env:Temp
(new-object System.Net.WebClient).DownloadFile($CHROMIUM_URI,"$TEMP\chromium.zip")
7z x $TEMP\chromium.zip -aoa -o"$LOCALPROGRAMS" -r -y
rm $TEMP\chromium.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment