diff options
Diffstat (limited to 'scripts/uninstall.cmd')
-rw-r--r-- | scripts/uninstall.cmd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/uninstall.cmd b/scripts/uninstall.cmd new file mode 100644 index 0000000..33ebaed --- /dev/null +++ b/scripts/uninstall.cmd @@ -0,0 +1,31 @@ +@echo off
+REM uninstall Windows ipmiutil on this system
+REM uninstall the DLLs, registry entries, and stop the checksel task
+set installdir=%SystemDrive%\Program Files\sourceforge\ipmiutil
+
+"%installdir%\showselun.reg"
+del /Q %SystemRoot%\system32\showsel.dll
+
+REM remove %installdir% from the PATH
+set pathkey="HKLM\System\CurrentControlSet\Control\Session Manager\Environment"
+REM reg query %pathkey% /v Path |findstr Path
+set NEWPATH=%PATH:;%installdir%=%
+reg add %pathkey% /v Path /t REG_EXPAND_SZ /d "%NEWPATH%"
+set PATH=%NEWPATH%
+
+REM type "%installdir%\checksel.id"
+FOR /F "usebackq tokens=1*" %%i IN (`type "%installdir%\checksel.id"`) DO call :SETAT %%i %%j
+goto :NEXTJ
+
+:SETAT
+REM %1 %2 %3 %4 %5 %6 %7 %8
+REM Added a new job with job ID = 2
+echo %1 %2 %3 %4 %5 %6 %7 %8 %9
+set ATJOB=%8
+echo at %ATJOB% /DELETE
+at %ATJOB% /DELETE
+goto :EOF
+
+:NEXTJ
+
+del /Q "%installdir%\*.*"
|