win-pvdrivers

view target/uninstall.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 4954c15a4921
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 uninstall available or machine not supported.
16 goto exit
18 :ver_xp
19 echo Windows XP Detected... Uninstalling...
20 shutdownmon -u
21 cd winxp
22 copy /y ..\common\i386\dpinst.exe . >nul
23 dpinst.exe /U xennet.inf
24 dpinst.exe /U xenenum.inf
25 dpinst.exe /U xenscsi.inf
26 dpinst.exe /U xenvbd.inf
27 dpinst.exe /U xenstub.inf
28 dpinst.exe /U xenpci.inf
29 cd ..
30 echo Done
31 goto exit
33 :ver_2k
34 echo Windows 2000 Detected... Uninstalling...
35 shutdownmon -u
36 cd win2k
37 copy /y ..\common\i386\dpinst.exe . >nul
38 dpinst.exe /U xennet.inf
39 dpinst.exe /U xenenum.inf
40 dpinst.exe /U xenscsi.inf
41 dpinst.exe /U xenvbd.inf
42 dpinst.exe /U xenstub.inf
43 dpinst.exe /U xenpci.inf
44 cd ..
45 echo Done
46 goto exit
49 :ver_2k3
50 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k3_amd64
51 echo Windows 2003 (i386) Detected... Uninstalling...
52 shutdownmon -u
53 cd winnet
54 copy /y ..\common\i386\dpinst.exe . >nul
55 dpinst.exe /U xennet.inf
56 dpinst.exe /U xenenum.inf
57 dpinst.exe /U xenscsi.inf
58 dpinst.exe /U xenvbd.inf
59 dpinst.exe /U xenstub.inf
60 dpinst.exe /U xenpci.inf
61 cd ..
62 echo Done
63 goto exit
65 :ver_2k3_amd64
66 echo Windows 2003 (amd64) Detected... Uninstalling...
67 shutdownmon -u
68 cd winnet
69 copy /y ..\common\amd64\dpinst.exe . >nul
70 dpinst.exe /U xennet.inf
71 dpinst.exe /U xenenum.inf
72 dpinst.exe /U xenscsi.inf
73 dpinst.exe /U xenvbd.inf
74 dpinst.exe /U xenstub.inf
75 dpinst.exe /U xenpci.inf
76 cd ..
77 echo Done
78 goto exit
80 :ver_2k8
81 if %PROCESSOR_ARCHITECTURE% == AMD64 goto ver_2k8_amd64
82 echo Windows Vista/2008 (i386) Detected... Uninstalling...
83 shutdownmon -u
84 cd winlh
85 copy /y ..\common\i386\dpinst.exe . >nul
86 dpinst.exe /U xennet.inf
87 dpinst.exe /U xenenum.inf
88 dpinst.exe /U xenscsi.inf
89 dpinst.exe /U xenvbd.inf
90 dpinst.exe /U xenstub.inf
91 dpinst.exe /U xenpci.inf
92 cd ..
93 echo Done
94 goto exit
96 :ver_2k8_amd64
97 echo Windows Vista/2008 (amd64) Detected... Uninstalling...
98 shutdownmon -u
99 cd winlh
100 copy /y ..\common\amd64\dpinst.exe . >nul
101 dpinst.exe /U xennet.inf
102 dpinst.exe /U xenenum.inf
103 dpinst.exe /U xenscsi.inf
104 dpinst.exe /U xenvbd.inf
105 dpinst.exe /U xenstub.inf
106 dpinst.exe /U xenpci.inf
107 cd ..
108 echo Done
109 goto exit
111 pause
112 :exit