win-pvdrivers

view uninstall_0.10.x.bat @ 846:1b1fde762e0c

Fix a bug in scsiport crash dump / hibernate
author James Harper <james.harper@bendigoit.com.au>
date Wed Feb 09 13:33:45 2011 +1100 (2011-02-09)
parents 67baf8f3c424
children
line source
1 @ECHO OFF
3 REM stop and remove shutdownmon service
4 net stop shutdownmon
5 "%ProgramFiles%\Xen PV Drivers\bin\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" >%TEMP%\james
18 FOR /f %%c IN (%TEMP%\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\XenHide /f
28 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
29 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPci /f
30 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
31 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
32 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
33 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
34 ECHO done