Last active
May 26, 2016 11:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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