Added README for Install
[sgc2.git] / addons / Windows_install.bat
blobe498500642d736d40762e8fd1aa612cb4b7d3391
1 cd "%~dp0"\r
2 if EXIST SGC2\SpeakGoodChinese2.exe (\r
3         if NOT EXIST "%HOMEDRIVE%%HOMEPATH%\Desktop\SpeakGoodChinese2.exe" (\r
4                 copy SGC2\SpeakGoodChinese2.exe "%HOMEDRIVE%%HOMEPATH%\Desktop\SpeakGoodChinese2.exe"\r
5                 if ERRORLEVEL 1 (\r
6                         msg "%username%" Installation of SpeakGoodChinese.exe encountered an error\r
7                 )\r
8 ) else (\r
9                 msg "%username%" SpeakGoodChinese.exe already exists at destination\r
10         )\r
11 )\r
13 mkdir "%HOMEDRIVE%%HOMEPATH%\SpeakGoodChinese2\wordlists"\r
14 xcopy /q /s /Y wordlists\* "%HOMEDRIVE%%HOMEPATH%\SpeakGoodChinese2\wordlists\"\r
15 if ERRORLEVEL 1 (\r
16         msg "%username%" Install encountered an error \r
17 ) else (\r
18         msg "%username%" Install completed\r
19 )\r