summaryrefslogtreecommitdiff
path: root/scripts/uninstall.cmd
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
commita7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch)
tree41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /scripts/uninstall.cmd
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'scripts/uninstall.cmd')
-rw-r--r--scripts/uninstall.cmd31
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%\*.*"