summaryrefslogtreecommitdiff
path: root/scripts/install.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/install.cmd
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'scripts/install.cmd')
-rw-r--r--scripts/install.cmd26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/install.cmd b/scripts/install.cmd
new file mode 100644
index 0000000..da0e860
--- /dev/null
+++ b/scripts/install.cmd
@@ -0,0 +1,26 @@
+@echo off
+REM install Windows ipmiutil on this system
+REM install the DLLs, registry entries, and start the checksel task
+REM Use the current directory as the starting path
+set ipmiutildir=%CD%
+set orgdir=%SystemDrive%\Program Files\sourceforge
+set installdir=%orgdir%\ipmiutil
+
+REM DLLs: showsel.dll, libeay32.dll, ssleay32.dll
+copy *.dll %SystemRoot%\system32
+%ipmiutildir%\showsel.reg
+
+echo Copying files to "%installdir%"
+mkdir "%orgdir%"
+mkdir "%installdir%"
+copy "%ipmiutildir%\*.*" "%installdir%"
+
+REM echo PATH=%PATH%
+set PATH=%PATH%;%installdir%
+
+set pathkey="HKLM\System\CurrentControlSet\Control\Session Manager\Environment"
+reg add %pathkey% /v Path /t REG_EXPAND_SZ /d "%PATH%;%installdir%"
+REM reg query %pathkey% /v Path
+
+at 23:30 /every:m,t,w,th,f,s,su "%installdir%\checksel.cmd" >"%installdir%\checksel.id"
+