win-pvdrivers

view target/install.bat @ 244:d31884ed02a9

tweaked a few things to make crashes go away
author James Harper <james.harper@bendigoit.com.au>
date Wed Apr 02 00:21:09 2008 +1100 (2008-04-02)
parents d5adfce6f643
children 909b775a891f
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\wdfcoinstaller* i386 >nul
23 copy /y ..\common\i386\dpinst.exe . >nul
24 dpinst.exe /LM /SA
25 cd ..
26 echo Done
27 goto exit
29 :ver_2k
30 echo Windows 2000 Detected... Installing...
31 shutdownmon -i
32 cd win2k
33 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
34 copy /y ..\common\i386\dpinst.exe . >nul
35 dpinst.exe /LM /SA
36 cd ..
37 echo Done
38 goto exit
41 :ver_2k3
42 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
43 echo Windows 2003 (i386) Detected... Installing...
44 shutdownmon -i
45 cd winnet
46 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
47 copy /y ..\common\i386\dpinst.exe . >nul
48 dpinst.exe /LM /SA
49 cd ..
50 echo Done
51 goto exit
53 :ver_2k3_amd64
54 echo Windows 2003 (amd64) Detected... Installing...
55 shutdownmon -i
56 cd winnet
57 copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
58 copy /y ..\common\amd64\dpinst.exe . >nul
59 dpinst.exe /LM /SA
60 cd ..
61 echo Done
62 goto exit
64 :ver_2k8
65 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
66 echo Windows Vista/2008 (i386) Detected... Installing...
67 shutdownmon -i
68 cd winlh
69 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
70 copy /y ..\common\i386\dpinst.exe . >nul
71 dpinst.exe /LM /SA
72 cd ..
73 echo Done
74 goto exit
76 :ver_2k8_amd64
77 echo Windows Vista/2008 (amd64) Detected... Installing...
78 shutdownmon -i
79 cd winlh
80 copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
81 copy /y ..\common\amd64\dpinst.exe . >nul
82 dpinst.exe /LM /SA
83 cd ..
84 echo Done
85 goto exit
87 pause
88 :exit