Skip to content

Instantly share code, notes, and snippets.

@tamj0rd2
Created November 19, 2016 10:29
Show Gist options
  • Save tamj0rd2/82e71a1293e34f6fb24315e4c2335e6d to your computer and use it in GitHub Desktop.
Save tamj0rd2/82e71a1293e34f6fb24315e4c2335e6d to your computer and use it in GitHub Desktop.
@echo off
if exist running exit
cd /d "%userprofile%\Downloads\"
set channel=continuous
set url=https://storage.googleapis.com/chromium-browser-%channel%/Win_x64
set wget=wget -N
type nul > running
if "%1" == "" (
%wget% %url%/LAST_CHANGE || goto hell
fc LAST_CHANGE LastVersion && goto hell
for /f %%i in (LAST_CHANGE) do %wget% %url%/%%i/mini_installer.exe || goto hell
) else %wget% %url%/%1/mini_installer.exe || goto hell
tasklist | find "chrome.exe" && goto hell
move /y LAST_CHANGE LastVersion
echo Installing Chromium...
start /wait mini_installer.exe
:hell
del /q running LAST_CHANGE
cd /d "%localappdata%\Chromium\Application\" && del /s /q chrome.7z & cd /d "%~dp0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment