win-pvdrivers

view uninstall_0.9.x.bat @ 1086:3d4d85c41fc6

Added tag 1.0.1085 for changeset 896402519f15
author James Harper <james.harper@bendigoit.com.au>
date Thu Dec 12 20:06:12 2013 +1100 (2013-12-12)
parents cbd4e4ae9527
children
line source
1 @ECHO OFF
3 REM stop and remove shutdownmon service
4 net stop shutdownmon
5 "%ProgramFiles%\Xen PV Drivers\ShutdownMon.exe" -u
7 REM remove XEN from Program Files
8 rmdir /q /s "%ProgramFiles%\Xen PV Drivers"
10 REM remove start menu stuff
11 ECHO "Please remove Start Menu stuff manually"
13 del /q "%SystemRoot%\system32\drivers\xen*"
15 REM delete inf and pnf files
16 FOR /F "delims=. tokens=1" %%I IN ('DIR /B "%SYSTEMROOT%\INF\OEM*.INF"') DO (
17 TYPE "%SYSTEMROOT%\INF\%%I.inf" | FIND /c /i "xen" >james
18 FOR /f %%c IN (james) DO (
19 IF /I %%c NEQ 0 (
20 DEL "%SYSTEMROOT%\INF\%%I.inf"
21 DEL "%SYSTEMROOT%\INF\%%I.pnf"
22 )
23 )
24 )
26 REM clean registry
27 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenConfig /f
28 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenHide /f
29 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
30 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPCI /f
31 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenStub /f
32 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
33 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
34 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
35 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
36 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97D-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
38 ECHO done