win-pvdrivers

view target/install.bat @ 1106:2d392ecdd366

Fix race is xenvbd causing 30 second freeze under high load
author James Harper <james.harper@bendigoit.com.au>
date Tue Nov 11 23:08:11 2014 +1100 (2014-11-11)
parents 909b775a891f
children
line source
1 @ECHO OFF
3 ver | find " 5.00." > nul
4 if %ERRORLEVEL% == 0 goto ver_2k
6 ver | find " 5.1." > nul
7 if %ERRORLEVEL% == 0 goto ver_xp
9 ver | find " 5.2." > nul
10 if %ERRORLEVEL% == 0 goto ver_2k3
12 ver | find " 6.0." > nul
13 if %ERRORLEVEL% == 0 goto ver_2k8
15 echo No automatic install available or machine not supported.
16 goto exit
18 :ver_xp
19 echo Windows XP Detected... Installing...
20 shutdownmon -i
21 cd winxp
22 copy /y ..\common\i386\dpinst.exe . >nul
23 dpinst.exe /LM /SA
24 cd ..
25 echo Done
26 goto exit
28 :ver_2k
29 echo Windows 2000 Detected... Installing...
30 shutdownmon -i
31 cd win2k
32 copy /y ..\common\i386\dpinst.exe . >nul
33 dpinst.exe /LM /SA
34 cd ..
35 echo Done
36 goto exit
39 :ver_2k3
40 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
41 echo Windows 2003 (i386) Detected... Installing...
42 shutdownmon -i
43 cd winnet
44 copy /y ..\common\i386\dpinst.exe . >nul
45 dpinst.exe /LM /SA
46 cd ..
47 echo Done
48 goto exit
50 :ver_2k3_amd64
51 echo Windows 2003 (amd64) Detected... Installing...
52 shutdownmon -i
53 cd winnet
54 copy /y ..\common\amd64\dpinst.exe . >nul
55 dpinst.exe /LM /SA
56 cd ..
57 echo Done
58 goto exit
60 :ver_2k8
61 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
62 echo Windows Vista/2008 (i386) Detected... Installing...
63 shutdownmon -i
64 cd winlh
65 copy /y ..\common\i386\dpinst.exe . >nul
66 dpinst.exe /LM /SA
67 cd ..
68 echo Done
69 goto exit
71 :ver_2k8_amd64
72 echo Windows Vista/2008 (amd64) Detected... Installing...
73 shutdownmon -i
74 cd winlh
75 copy /y ..\common\amd64\dpinst.exe . >nul
76 dpinst.exe /LM /SA
77 cd ..
78 echo Done
79 goto exit
81 pause
82 :exit