Skip to content

Instantly share code, notes, and snippets.

@saschanaz
Last active August 29, 2015 14:02
Show Gist options
  • Save saschanaz/ee2072c291a8718ccd3d to your computer and use it in GitHub Desktop.
Save saschanaz/ee2072c291a8718ccd3d to your computer and use it in GitHub Desktop.
Install Firefox
set directory=%USERPROFILE%
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe"
if errorlevel 1 (
bitsadmin /transfer "DownloadFirefox" "https://download.mozilla.org/?product=firefox-stub&os=win&lang=ko" "%directory%\firefoxInstaller.exe"
echo Installing Firefox...
start /wait /D "%directory%" firefoxInstaller.exe
del "%directory%\firefoxInstaller.exe"
)
start firefox.exe http://jsfiddle.net/saschanaz/Rxv46/embedded/result/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment