win-pvdrivers

changeset 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 36fef48dbfa9
children d8f2ad9f39ac
files uninstall_0.10.x.bat uninstall_0.9.x.bat
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uninstall_0.10.x.bat	Sat May 16 14:09:00 2009 +1000
     1.3 @@ -0,0 +1,34 @@
     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\bin\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" >%TEMP%\james
    1.21 + FOR /f %%c IN (%TEMP%\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\XenHide /f
    1.31 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
    1.32 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPci /f
    1.33 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
    1.34 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    1.35 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
    1.36 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    1.37 +ECHO done
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/uninstall_0.9.x.bat	Sat May 16 14:09:00 2009 +1000
     2.3 @@ -0,0 +1,36 @@
     2.4 +@ECHO OFF
     2.5 +
     2.6 +REM stop and remove shutdownmon service
     2.7 +net stop shutdownmon
     2.8 +"%ProgramFiles%\Xen PV Drivers\ShutdownMon.exe" -u
     2.9 +
    2.10 +REM remove XEN from Program Files
    2.11 +rmdir /q /s "%ProgramFiles%\Xen PV Drivers"
    2.12 +
    2.13 +REM remove start menu stuff
    2.14 +ECHO "Please remove Start Menu stuff manually"
    2.15 +
    2.16 +del /q "%SystemRoot%\system32\drivers\xen*"
    2.17 +
    2.18 +REM delete inf and pnf files
    2.19 +FOR /F "delims=. tokens=1" %%I IN ('DIR /B "%SYSTEMROOT%\INF\OEM*.INF"') DO (
    2.20 + TYPE "%SYSTEMROOT%\INF\%%I.inf" | FIND /c /i "xen"  >james
    2.21 + FOR /f %%c IN (james) DO (
    2.22 +  IF /I %%c NEQ 0 (
    2.23 +   DEL "%SYSTEMROOT%\INF\%%I.inf"
    2.24 +   DEL "%SYSTEMROOT%\INF\%%I.pnf"
    2.25 +  )
    2.26 + )
    2.27 +)
    2.28 +
    2.29 +REM clean registry
    2.30 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenConfig /f
    2.31 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenHide /f
    2.32 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
    2.33 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPCI /f
    2.34 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenStub /f
    2.35 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
    2.36 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    2.37 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
    2.38 +REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
    2.39 +ECHO done