summaryrefslogtreecommitdiff
path: root/scripts/install.cmd
diff options
context:
space:
mode:
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"
+