comparison Build/init_win.bat @ 1924:8cd321994943

MSVS 2012 project file & some compilation warning fixes
author Nomad
date Wed, 23 Oct 2013 15:37:17 +0200
parents
children 68f2d9d3a1d9
comparison
equal deleted inserted replaced
1921:f04c2f93dacb 1924:8cd321994943
1 @echo off
2 set _mm7_install_dir=E:\g\mm collection\MM_VII
3
4
5
6
7 REM Check Windows Version
8
9 ver | findstr /i "5\.0\." > nul
10 IF %ERRORLEVEL% EQU 0 goto win_2000
11
12 ver | findstr /i "5\.1\." > nul
13 IF %ERRORLEVEL% EQU 0 goto win_xp
14
15 ver | findstr /i "5\.2\." > nul
16 IF %ERRORLEVEL% EQU 0 goto win_2003
17
18 ver | findstr /i "6\.0\." > nul
19 IF %ERRORLEVEL% EQU 0 goto win_vista
20
21 ver | findstr /i "6\.1\." > nul
22 IF %ERRORLEVEL% EQU 0 goto win_7
23
24 echo Machine OS cannot be determined.
25 goto end
26
27 :win_7
28 echo Win 7
29 reg add HKCU\Environment /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
30
31 reg query HKCU\Environment /v "WoMM_MM7_INSTALL_DIR"
32 goto end
33
34 :win_2000
35 echo Win 2000
36 goto end
37
38 :win_xp
39 echo Win XP
40 reg add HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
41
42
43 reg query HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment /v "WoMM_MM7_INSTALL_DIR"
44 goto end
45
46 :win_vista
47 echo Win Vista
48 goto end
49
50 :win_2003
51 echo Win 2003
52 goto end
53
54 :check_vars
55 goto end
56
57 :end
58 pause