User can now choose to not install the git app, and (after installation) he'll has to specify the path of the git app

This commit is contained in:
GlenDC 2014-02-03 00:37:15 +01:00
parent 1020a97fa1
commit fc40fdebb7
4 changed files with 62 additions and 20 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -15,6 +15,10 @@ IF EXIST "%PROGRAMFILES(X86)%" (
:: TIPS :: TIPS
:: + Ask user if he wants to install something :: + Ask user if he wants to install something
:: + Ask user to enter the path of the installed program (git, ...) :: + Ask user to enter the path of the installed program (git, ...)
:: TODO
:: + Ask for all software if users wants to install it yes or no...
:: + When user has git, or after git is installed, let him enter the path to the git exe
:: Create The Temporary Directory :: Create The Temporary Directory
IF EXIST %temp-dir% rmdir %temp-dir% /s /q IF EXIST %temp-dir% rmdir %temp-dir% /s /q
@ -55,9 +59,13 @@ for /L %%i in (1,%wc%,%languages_c%) do (
) )
set "lang_id=-1" set "lang_id=-1"
set /p lang_id= "Enter the language ID and press <ENTER>: " call:user_enter_language_id
goto:user_pick_language goto:user_pick_language
:user_enter_language_id
set /p lang_id= "Enter the language ID and press <ENTER>: "
goto:eof
:user_pick_language :user_pick_language
set res=false set res=false
if %lang_id% LSS 0 set res=true if %lang_id% LSS 0 set res=true
@ -65,7 +73,7 @@ goto:user_pick_language
if "%res%"=="true" ( if "%res%"=="true" (
call:log "Invalid id! Please enter a correct id from the numbers listed above..." call:log "Invalid id! Please enter a correct id from the numbers listed above..."
call:draw_dss call:draw_dss
set /p lang_id= "Enter the language ID and press <ENTER>: " call:user_enter_language_id
goto:user_pick_language goto:user_pick_language
) )
@ -81,7 +89,23 @@ call:log_lw_sse 2
call:log_lw_sse 3 call:log_lw_sse 3
call:install_software "git" "%%downloads[1]%%" exe call:log_lw 6
call:log_lw 7
call:log_lw 8
call:get_lw word 9
set /p result="%word% [Y/N]: "
call:draw_dss
set res=false
if "%result%"=="N" set res=true
if "%result%"=="n" set res=true
if "%res%"=="true" (
call:install_software "git" "%%downloads[1]%%" exe
) else (
call:log_lw 10
)
call:draw_dss
call:get_lw word 11
set /p git_exe_path="%word%: "
:: [TODO] Add downloads for windows visual studio ?! :: [TODO] Add downloads for windows visual studio ?!
@ -237,22 +261,22 @@ goto:eof
:log_lw :log_lw
call:get_lw str %~1 call:get_lw str %~1
call:log %str% call:log "%str%"
goto:eof goto:eof
:log_lw_ss :log_lw_ss
call:get_lw str %~1 call:get_lw str %~1
call:log_ss %str% call:log_ss "%str%"
goto:eof goto:eof
:log_lw_ds :log_lw_ds
call:get_lw str %~1 call:get_lw str %~1
call:log_ds %str% call:log_ds "%str%"
goto:eof goto:eof
:log_lw_sse :log_lw_sse
call:get_lw str %~1 call:get_lw str %~1
call:log_sse %str% call:log_sse "%str%"
goto:eof goto:eof
:: ============================== EOF ==================================== :: ============================== EOF ====================================

View file

@ -1,6 +1,12 @@
English English
"Installation has begun, this can take a while... Please stay tuned..." Installation has begun, this can take a while... Please stay tuned...
"Don't close any windows please, unless specified explicitly." Don't close any windows please, unless specified explicitly.
"[DOWNLOADING AND INSTALLING 3RD PARTY SOFTWARE]" [DOWNLOADING AND INSTALLING 3RD PARTY SOFTWARE]
downloading: downloading:
installing: installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Download and Installation cancelled...
Enter the path to your Git CL Exectutable

View file

@ -1,6 +1,12 @@
français français
"Installation has begun, this can take a while... Please stay tuned..." Installation has begun, this can take a while... Please stay tuned...
"Don't close any windows please, unless specified explicitly." Don't close any windows please, unless specified explicitly.
"[DOWNLOADING AND INSTALLING 3RD PARTY SOFTWARE]" [DOWNLOADING AND INSTALLING 3RD PARTY SOFTWARE]
downloading: downloading:
installing: installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Download and Installation cancelled...
Enter the path to your Git CL Exectutable

View file

@ -1,6 +1,12 @@
Nederlands Nederlands
"Installatie is begonnen, dit kan een tijdje duren... Heb dus even geduld..." Installation has begun, this can take a while... Please stay tuned...
"Sluit geen enkel venster alstublieft, tenzij anders aangegeven is." Don't close any windows please, unless specified explicitly.
"[3RD PARTY SOFTWARE AAN HET DOWNLOADEN EN INSTALLEREN]" [DOWNLOADING AND INSTALLING 3RD PARTY SOFTWARE]
downloaden: downloading:
installeren: installing:
CodeCombat is safely stored on a git repository.
Therefore you need a git command-line application.
Examples: git-bash, CygWin, ...
Do you already have a git command-line application?
Download and Installation cancelled...
Enter the path to your Git CL Exectutable