source: installer/resources/postinstall.bat @ c8970c0

Last change on this file since c8970c0 was c8970c0, checked in by dev <dev@…>, 12 years ago

changed some of the URL's

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[fd85416]1:: I2P Installer - Installs and pre-configures I2P.
2::
3:: postinstall.bat
4:: 2004 The I2P Project
[c8970c0]5:: http://www.i2p2.de/
[fd85416]6:: This code is public domain.
7::
8:: author: hypercubus
9::
10:: Installs the Java Service Wrapper support files for Win32 then launches the
11:: I2P router as a background service.
12
13@echo off
[b31378a]14setlocal
[58461ff]15
16if "%OS%"=="Windows_NT" (
[fd85416]17set INSTALL_PATH=%~dp0
[58461ff]18) else (
19set INSTALL_PATH="%1"
20)
21
[fd85416]22copy "%INSTALL_PATH%lib\wrapper\win32\I2Psvc.exe" "%INSTALL_PATH%"
23copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.dll" "%INSTALL_PATH%lib"
24copy "%INSTALL_PATH%lib\wrapper\win32\wrapper.jar" "%INSTALL_PATH%lib"
[58461ff]25
26if "%OS%"=="Windows_NT" (
27
[7b86eda]28del /f /q "%INSTALL_PATH%i2prouter"
29:: del /f /q "%INSTALL_PATH%install_i2p_service_unix"
30del /f /q "%INSTALL_PATH%install-headless.txt"
31del /f /q "%INSTALL_PATH%osid"
32del /f /q "%INSTALL_PATH%postinstall.sh"
[df6c52f]33del /f /q "%INSTALL_PATH%startRouter.sh"
[7b86eda]34:: del /f /q "%INSTALL_PATH%uninstall_i2p_service_unix"
35del /f /q "%INSTALL_PATH%icons\*.xpm"
36rmdir /q /s "%INSTALL_PATH%lib\wrapper"
[758293d]37start /b /i /d"%INSTALL_PATH%" i2prouter.bat %INSTALL_PATH%
[58461ff]38
39) else (
40
[c7c389d]41del "%INSTALL_PATH%eepget"
[58461ff]42del "%INSTALL_PATH%i2prouter"
43:: del "%INSTALL_PATH%install_i2p_service_unix"
44del "%INSTALL_PATH%install_i2p_service_winnt.bat"
45del "%INSTALL_PATH%install-headless.txt"
46del "%INSTALL_PATH%osid"
47del "%INSTALL_PATH%postinstall.sh"
[df6c52f]48del "%INSTALL_PATH%startRouter.sh"
[58461ff]49:: del "%INSTALL_PATH%uninstall_i2p_service_unix"
50del "%INSTALL_PATH%uninstall_i2p_service_winnt.bat"
51del "%INSTALL_PATH%icons\*.xpm"
52deltree /Y "%INSTALL_PATH%lib\wrapper"
[758293d]53start /M "%INSTALL_PATH%i2prouter.bat" %INSTALL_PATH%
[58461ff]54
55)
Note: See TracBrowser for help on using the repository browser.