win-pvdrivers

annotate uninstall_0.10.x.bat @ 783:644e5ddb1b47

Handle SCSI INQUIRY command better in xenvbd
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 15 20:53:57 2010 +1100 (2010-02-15)
parents 67baf8f3c424
children
rev   line source
james@571 1 @ECHO OFF
james@571 2
james@571 3 REM stop and remove shutdownmon service
james@571 4 net stop shutdownmon
james@571 5 "%ProgramFiles%\Xen PV Drivers\bin\ShutdownMon.exe" -u
james@571 6
james@571 7 REM remove XEN from Program Files
james@571 8 rmdir /q /s "%ProgramFiles%\Xen PV Drivers"
james@571 9
james@571 10 REM remove start menu stuff
james@571 11 ECHO "Please remove Start Menu stuff manually"
james@571 12
james@571 13 del /q "%SystemRoot%\system32\drivers\xen*"
james@571 14
james@571 15 REM delete inf and pnf files
james@571 16 FOR /F "delims=. tokens=1" %%I IN ('DIR /B "%SYSTEMROOT%\INF\OEM*.INF"') DO (
james@571 17 TYPE "%SYSTEMROOT%\INF\%%I.inf" | FIND /c /i "xen" >%TEMP%\james
james@571 18 FOR /f %%c IN (%TEMP%\james) DO (
james@571 19 IF /I %%c NEQ 0 (
james@571 20 DEL "%SYSTEMROOT%\INF\%%I.inf"
james@571 21 DEL "%SYSTEMROOT%\INF\%%I.pnf"
james@571 22 )
james@571 23 )
james@571 24 )
james@571 25
james@571 26 REM clean registry
james@571 27 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenHide /f
james@571 28 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenNet /f
james@571 29 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenPci /f
james@571 30 REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\XenVbd /f
james@571 31 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
james@571 32 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318} /v UpperFilters /f
james@571 33 REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} /v UpperFilters /f
james@571 34 ECHO done