2004-09-03 hypercubus

* Bugfix: Installer launches postinstall.bat on WinNT/2K properly.
    * Temporarily removed install_i2p_service_unix and
      uninstall_i2p_service_unix from distribution packages.
    * postinstall.bat/postinstall.sh cleans installation directory of all files
      not applicable to the host OS.
This commit is contained in:
hypercubus
2004-09-03 16:52:27 +00:00
committed by zzz
parent 49d4e565c6
commit 7b86edaf7f
5 changed files with 25 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
<processing>
<job name="Launching I2P...">
<os family="windows" />
<executefile name="C:\Windows\System32\cmd.exe">
<executefile name="cmd.exe">
<arg>/c</arg><arg>"$INSTALL_PATH\postinstall.bat"</arg>
</executefile>
</job>

View File

@@ -16,4 +16,12 @@ set INSTALL_PATH=%~dp0
copy "%INSTALL_PATH%lib\wrapper\win32\I2Psvc.exe" "%INSTALL_PATH%"
copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.dll" "%INSTALL_PATH%lib"
copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.jar" "%INSTALL_PATH%lib"
del /f /q "%INSTALL_PATH%i2prouter"
:: del /f /q "%INSTALL_PATH%install_i2p_service_unix"
del /f /q "%INSTALL_PATH%install-headless.txt"
del /f /q "%INSTALL_PATH%osid"
del /f /q "%INSTALL_PATH%postinstall.sh"
:: del /f /q "%INSTALL_PATH%uninstall_i2p_service_unix"
del /f /q "%INSTALL_PATH%icons\*.xpm"
rmdir /q /s "%INSTALL_PATH%lib\wrapper"
start /b /i /d"%INSTALL_PATH%" i2prouter.bat

View File

@@ -17,9 +17,9 @@ if [ ! "X$1" = "X" ]; then
fi
chmod 744 ./i2prouter
chmod 744 ./install_i2p_service_unix
# chmod 744 ./install_i2p_service_unix
chmod 744 ./osid
chmod 744 ./uninstall_i2p_service_unix
# chmod 744 ./uninstall_i2p_service_unix
ERROR_MSG="Cannot determine operating system type. From the subdirectory in lib/wrapper matching your operating system, please move i2psvc to your base I2P directory, and move the remaining two files to the lib directory."
@@ -56,6 +56,10 @@ esac
cp $wrapperpath/wrapper.jar ./lib/
cp $wrapperpath/i2psvc .
chmod 744 ./i2psvc
rm -rdf ./icons
rm -rdf ./lib/wrapper
rm -f ./lib/*.dll
rm -f ./*.bat
./i2prouter start
exit 0