annotate Build/init_win.bat @ 1999:079f2abf54e4

DrawIndoorSky() fix
author Ritor1
date Tue, 05 Nov 2013 12:58:19 +0600
parents 68f2d9d3a1d9
children 255168c31655
rev   line source
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
1 @echo off
1936
68f2d9d3a1d9 MSVS 2010 project file
Ritor1
parents: 1924
diff changeset
2 set _mm7_install_dir=C:\Program Files\Buka\MMCollection\MM_VII
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
3
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
4
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
5
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
6 REM Check Windows Version
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
8 ver | findstr /i "5\.0\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
9 IF %ERRORLEVEL% EQU 0 goto win_2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
10
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
11 ver | findstr /i "5\.1\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
12 IF %ERRORLEVEL% EQU 0 goto win_xp
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
13
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
14 ver | findstr /i "5\.2\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
15 IF %ERRORLEVEL% EQU 0 goto win_2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
16
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
17 ver | findstr /i "6\.0\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
18 IF %ERRORLEVEL% EQU 0 goto win_vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
19
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
20 ver | findstr /i "6\.1\." > nul
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
21 IF %ERRORLEVEL% EQU 0 goto win_7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
22
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
23 echo Machine OS cannot be determined.
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
24 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
25
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
26 :win_7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
27 echo Win 7
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
28 reg add HKCU\Environment /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
29
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
30 reg query HKCU\Environment /v "WoMM_MM7_INSTALL_DIR"
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
31 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
32
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
33 :win_2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
34 echo Win 2000
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
35 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
36
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
37 :win_xp
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
38 echo Win XP
1936
68f2d9d3a1d9 MSVS 2010 project file
Ritor1
parents: 1924
diff changeset
39 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "WoMM_MM7_INSTALL_DIR" /t REG_SZ /d "%_mm7_install_dir%"
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
40
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
41
1936
68f2d9d3a1d9 MSVS 2010 project file
Ritor1
parents: 1924
diff changeset
42 reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "WoMM_MM7_INSTALL_DIR"
1924
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
43 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
44
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
45 :win_vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
46 echo Win Vista
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
47 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
48
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
49 :win_2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
50 echo Win 2003
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
51 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
52
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
53 :check_vars
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
54 goto end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
55
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
56 :end
8cd321994943 MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
diff changeset
57 pause