Skip to content

Commit

Permalink
Fix installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
simonewebdesign committed Oct 1, 2016
1 parent 5b5db97 commit 67cce52
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ echo Downloading...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://codeload.github.com/simonewebdesign/elm-new/zip/v1.1.1a', 'C:\Tools\elm-new\elm-new.zip')"

echo Extracting...
call :unzip "C:\Tools\elm-new\extracted" "C:\Tools\elm-new\elm-new.zip"
call :unzip "C:\Tools\elm-new" "C:\Tools\elm-new\elm-new.zip"

echo Installing...
robocopy C:\Tools\elm-new\elm-new-1.1.1a C:\Tools\elm-new /e >nul 2>&1

echo Cleaning...
del C:\Tools\elm-new\elm-new.zip
rmdir /s /q C:\Tools\elm-new\elm-new-1.1.1a

echo Done!
exit /b

:unzip <ExtractTo> <newzipfile>
set vbs="%temp%\_.vbs"
Expand All @@ -23,12 +33,3 @@ if exist %vbs% del /f /q %vbs%
>>%vbs% echo Set objShell = Nothing
cscript //nologo %vbs%
if exist %vbs% del /f /q %vbs%

echo Installing...
move C:\Tools\elm-new\extracted\elm-new-1.1.1a\elm-new.bat C:\Tools\elm-new\elm-new.bat

echo Cleaning...
rmdir /s /q C:\Tools\elm-new\extracted

echo Done!
exit /b

0 comments on commit 67cce52

Please sign in to comment.