win-pvdrivers

annotate 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
rev   line source
james@187 1 @ECHO OFF
james@187 2
james@244 3 ver | find " 5.00." > nul
james@195 4 if %ERRORLEVEL% == 0 goto ver_2k
james@187 5
james@244 6 ver | find " 5.1." > nul
james@187 7 if %ERRORLEVEL% == 0 goto ver_xp
james@187 8
james@244 9 ver | find " 5.2." > nul
james@195 10 if %ERRORLEVEL% == 0 goto ver_2k3
james@187 11
james@244 12 ver | find " 6.0." > nul
james@195 13 if %ERRORLEVEL% == 0 goto ver_2k8
james@195 14
james@195 15 echo No automatic install available or machine not supported.
james@187 16 goto exit
james@187 17
james@187 18 :ver_xp
james@187 19 echo Windows XP Detected... Installing...
james@187 20 shutdownmon -i
james@194 21 cd winxp
james@195 22 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
james@195 23 copy /y ..\common\i386\dpinst.exe . >nul
james@195 24 dpinst.exe /LM /SA
james@195 25 cd ..
james@195 26 echo Done
james@195 27 goto exit
james@195 28
james@195 29 :ver_2k
james@195 30 echo Windows 2000 Detected... Installing...
james@195 31 shutdownmon -i
james@195 32 cd win2k
james@195 33 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
james@195 34 copy /y ..\common\i386\dpinst.exe . >nul
james@195 35 dpinst.exe /LM /SA
james@195 36 cd ..
james@195 37 echo Done
james@195 38 goto exit
james@195 39
james@195 40
james@195 41 :ver_2k3
james@195 42 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
james@195 43 echo Windows 2003 (i386) Detected... Installing...
james@195 44 shutdownmon -i
james@195 45 cd winnet
james@195 46 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
james@195 47 copy /y ..\common\i386\dpinst.exe . >nul
james@195 48 dpinst.exe /LM /SA
james@195 49 cd ..
james@195 50 echo Done
james@195 51 goto exit
james@195 52
james@195 53 :ver_2k3_amd64
james@195 54 echo Windows 2003 (amd64) Detected... Installing...
james@195 55 shutdownmon -i
james@195 56 cd winnet
james@195 57 copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
james@195 58 copy /y ..\common\amd64\dpinst.exe . >nul
james@195 59 dpinst.exe /LM /SA
james@195 60 cd ..
james@195 61 echo Done
james@195 62 goto exit
james@195 63
james@195 64 :ver_2k8
james@195 65 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
james@195 66 echo Windows Vista/2008 (i386) Detected... Installing...
james@195 67 shutdownmon -i
james@195 68 cd winlh
james@195 69 copy /y ..\common\i386\wdfcoinstaller* i386 >nul
james@195 70 copy /y ..\common\i386\dpinst.exe . >nul
james@195 71 dpinst.exe /LM /SA
james@195 72 cd ..
james@195 73 echo Done
james@195 74 goto exit
james@195 75
james@195 76 :ver_2k8_amd64
james@195 77 echo Windows Vista/2008 (amd64) Detected... Installing...
james@195 78 shutdownmon -i
james@195 79 cd winlh
james@195 80 copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
james@195 81 copy /y ..\common\amd64\dpinst.exe . >nul
james@195 82 dpinst.exe /LM /SA
james@195 83 cd ..
james@187 84 echo Done
james@187 85 goto exit
james@187 86
james@187 87 pause
james@187 88 :exit