win-pvdrivers

diff uninstall_0.9.x.bat @ 571:67baf8f3c424

Added some brute force uninstaller bat files
author James Harper <james.harper@bendigoit.com.au>
date Sat May 16 14:09:00 2009 +1000 (2009-05-16)
parents
children cbd4e4ae9527
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uninstall_0.9.x.bat	Sat May 16 14:09:00 2009 +1000
     1.3 @@ -0,0 +1,36 @@
     1.4 +@ECHO OFF
     1.5 +
     1.6 +REM stop and remove shutdownmon service
     1.7 +net stop shutdownmon
     1.8 +"%ProgramFiles%\Xen PV Drivers\ShutdownMon.exe" -u
     1.9 +
    1.10 +REM remove XEN from Program Files
    1.11 +rmdir /q /s "%ProgramFiles%\Xen PV Drivers"
    1.12 +
    1.13 +REM remove start menu stuff
    1.14 +ECHO "Please remove Start Menu stuff manually"
    1.15 +
    1.16 +del /q "%SystemRoot%\system32\drivers\xen*"
    1.17 +
    1.18 +REM delete inf and pnf files
    1.19 +FOR /F "delims=. tokens=1" %%I IN ('DIR /B "%SYSTEMROOT%\INF\OEM*.INF"') DO (
    1.20 + TYPE "%SYSTEMROOT%\INF\%%I.inf" | FIND /c /i "xen"  >james
    1.21 + FOR /f %%c IN (james) DO (
    1.22 +  IF /I %%c NEQ 0 (
    1.23 +   DEL "%SYSTEMROOT%\INF\%%I.inf"
    1.24 +   DEL "%SYSTEMROOT%\INF\%%I.pnf"
    1.25 +  )
    1.26 + )
    1.27 +)
    1.28 +
    1.29 +REM clean registry
    1.30 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenConfig /f
    1.31 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenHide /f
    1.32 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
    1.33 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPCI /f
    1.34 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenStub /f
    1.35 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
    1.36 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    1.37 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
    1.38 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    1.39 +ECHO done