win-pvdrivers

annotate target/install.bat @ 1066:24fae56a87bf

Fix build errors
author James Harper <james.harper@bendigoit.com.au>
date Tue Oct 29 19:38:31 2013 +1100 (2013-10-29)
parents 909b775a891f
children
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\dpinst.exe . >nul
james@195 23 dpinst.exe /LM /SA
james@195 24 cd ..
james@195 25 echo Done
james@195 26 goto exit
james@195 27
james@195 28 :ver_2k
james@195 29 echo Windows 2000 Detected... Installing...
james@195 30 shutdownmon -i
james@195 31 cd win2k
james@195 32 copy /y ..\common\i386\dpinst.exe . >nul
james@195 33 dpinst.exe /LM /SA
james@195 34 cd ..
james@195 35 echo Done
james@195 36 goto exit
james@195 37
james@195 38
james@195 39 :ver_2k3
james@195 40 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
james@195 41 echo Windows 2003 (i386) Detected... Installing...
james@195 42 shutdownmon -i
james@195 43 cd winnet
james@195 44 copy /y ..\common\i386\dpinst.exe . >nul
james@195 45 dpinst.exe /LM /SA
james@195 46 cd ..
james@195 47 echo Done
james@195 48 goto exit
james@195 49
james@195 50 :ver_2k3_amd64
james@195 51 echo Windows 2003 (amd64) Detected... Installing...
james@195 52 shutdownmon -i
james@195 53 cd winnet
james@195 54 copy /y ..\common\amd64\dpinst.exe . >nul
james@195 55 dpinst.exe /LM /SA
james@195 56 cd ..
james@195 57 echo Done
james@195 58 goto exit
james@195 59
james@195 60 :ver_2k8
james@195 61 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
james@195 62 echo Windows Vista/2008 (i386) Detected... Installing...
james@195 63 shutdownmon -i
james@195 64 cd winlh
james@195 65 copy /y ..\common\i386\dpinst.exe . >nul
james@195 66 dpinst.exe /LM /SA
james@195 67 cd ..
james@195 68 echo Done
james@195 69 goto exit
james@195 70
james@195 71 :ver_2k8_amd64
james@195 72 echo Windows Vista/2008 (amd64) Detected... Installing...
james@195 73 shutdownmon -i
james@195 74 cd winlh
james@195 75 copy /y ..\common\amd64\dpinst.exe . >nul
james@195 76 dpinst.exe /LM /SA
james@195 77 cd ..
james@187 78 echo Done
james@187 79 goto exit
james@187 80
james@187 81 pause
james@272 82 :exit