win-pvdrivers

diff target/install.bat @ 195:da58a35a8a31

Oops... haven't checked in in a while. 0.8.2 and 3 are somewhere in here :)
author James Harper <james.harper@bendigoit.com.au>
date Tue Feb 26 23:06:38 2008 +1100 (2008-02-26)
parents d767540b82c0
children 4cc15e403eb5
line diff
     1.1 --- a/target/install.bat	Fri Feb 22 14:56:36 2008 +1100
     1.2 +++ b/target/install.bat	Tue Feb 26 23:06:38 2008 +1100
     1.3 @@ -1,27 +1,86 @@
     1.4  @ECHO OFF
     1.5  
     1.6 -ver | find "Version 5.2." > nul
     1.7 -if %ERRORLEVEL% == 0 goto ver_2003
     1.8 +ver | find "Version 5.0." > nul
     1.9 +if %ERRORLEVEL% == 0 goto ver_2k
    1.10  
    1.11  ver | find "Version 5.1." > nul
    1.12  if %ERRORLEVEL% == 0 goto ver_xp
    1.13  
    1.14 -echo No automatic install available or machine not supported.
    1.15 -goto exit
    1.16 +ver | find "Version 5.2." > nul
    1.17 +if %ERRORLEVEL% == 0 goto ver_2k3
    1.18  
    1.19 -:ver_2003
    1.20 -echo Windows 2003 Detected... Installing...
    1.21 -shutdownmon -i
    1.22 -cd winnet
    1.23 -dpinst.exe /LM
    1.24 -echo Done
    1.25 +ver | find "Version 6.0." > nul
    1.26 +if %ERRORLEVEL% == 0 goto ver_2k8
    1.27 +
    1.28 +echo No automatic install available or machine not supported.
    1.29  goto exit
    1.30  
    1.31  :ver_xp
    1.32  echo Windows XP Detected... Installing...
    1.33  shutdownmon -i
    1.34  cd winxp
    1.35 -dpinst.exe /LM
    1.36 +copy /y ..\common\i386\wdfcoinstaller* i386 >nul
    1.37 +copy /y ..\common\i386\dpinst.exe . >nul
    1.38 +dpinst.exe /LM /SA
    1.39 +cd ..
    1.40 +echo Done
    1.41 +goto exit
    1.42 +
    1.43 +:ver_2k
    1.44 +echo Windows 2000 Detected... Installing...
    1.45 +shutdownmon -i
    1.46 +cd win2k
    1.47 +copy /y ..\common\i386\wdfcoinstaller* i386 >nul
    1.48 +copy /y ..\common\i386\dpinst.exe . >nul
    1.49 +dpinst.exe /LM /SA
    1.50 +cd ..
    1.51 +echo Done
    1.52 +goto exit
    1.53 +
    1.54 +
    1.55 +:ver_2k3
    1.56 +if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
    1.57 +echo Windows 2003 (i386) Detected... Installing...
    1.58 +shutdownmon -i
    1.59 +cd winnet
    1.60 +copy /y ..\common\i386\wdfcoinstaller* i386 >nul
    1.61 +copy /y ..\common\i386\dpinst.exe . >nul
    1.62 +dpinst.exe /LM /SA
    1.63 +cd ..
    1.64 +echo Done
    1.65 +goto exit
    1.66 +
    1.67 +:ver_2k3_amd64
    1.68 +echo Windows 2003 (amd64) Detected... Installing...
    1.69 +shutdownmon -i
    1.70 +cd winnet
    1.71 +copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
    1.72 +copy /y ..\common\amd64\dpinst.exe . >nul
    1.73 +dpinst.exe /LM /SA
    1.74 +cd ..
    1.75 +echo Done
    1.76 +goto exit
    1.77 +
    1.78 +:ver_2k8
    1.79 +if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
    1.80 +echo Windows Vista/2008 (i386) Detected... Installing...
    1.81 +shutdownmon -i
    1.82 +cd winlh
    1.83 +copy /y ..\common\i386\wdfcoinstaller* i386 >nul
    1.84 +copy /y ..\common\i386\dpinst.exe . >nul
    1.85 +dpinst.exe /LM /SA
    1.86 +cd ..
    1.87 +echo Done
    1.88 +goto exit
    1.89 +
    1.90 +:ver_2k8_amd64
    1.91 +echo Windows Vista/2008 (amd64) Detected... Installing...
    1.92 +shutdownmon -i
    1.93 +cd winlh
    1.94 +copy /y ..\common\amd64\wdfcoinstaller* amd64 >nul
    1.95 +copy /y ..\common\amd64\dpinst.exe . >nul
    1.96 +dpinst.exe /LM /SA
    1.97 +cd ..
    1.98  echo Done
    1.99  goto exit
   1.100