Skip to content

Instantly share code, notes, and snippets.

@ruario
Last active May 26, 2016 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruario/81f839833fa1539c967363614d22a905 to your computer and use it in GitHub Desktop.
Save ruario/81f839833fa1539c967363614d22a905 to your computer and use it in GitHub Desktop.
Unpacks and installs (in standalone mode) the most recent, manually downloaded Vivaldi Windows installer from your Downloads folder, into a version numbered sub-folder of your desktop
@ECHO OFF
SET INSTALLPATH=%HOMEPATH%\Desktop\Vivaldi-Builds
SET DOWNLOADPATH=%HOMEPATH%\Downloads
FOR /F %%i IN ('dir /b /t:w /o-d "%DOWNLOADPATH%"\Vivaldi*.exe') DO (
SET PKG=%%i
GOTO :CONTINUE
)
ECHO No Vivaldi installers in Downloads
pause
GOTO :END
:CONTINUE
SET VER=%PKG:Vivaldi.=%
SET VER=%VER:.x64=%
SET VER=%VER:.exe=%
IF EXIST "%INSTALLPATH%\%VER%" (
ECHO Vivaldi %VER% is already installed
pause
GOTO :END
)
ECHO Installing Vivaldi %VER%
"%DOWNLOADPATH%\%PKG%" --vivaldi --vivaldi-standalone --vivaldi-update --vivaldi-install-dir="%INSTALLPATH%\%VER%"
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment