source: installer/resources/postinstall.bat @ b2e8d3c

Last change on this file since b2e8d3c was b2e8d3c, checked in by kytv <kytv@…>, 9 years ago

Here is the long awaited upgrade of the wrapper.

The aging v3.1.x of the java wrapper is being replaced in this
checkin with the latest (current) stable release, 3.5.9.

There is now only one copy of wrapper.jar, located in wrapper/all.
The build.xml scripts have been changed to reflect this new path.

All binaries—with the exception of solaris (I don't have
SPARC hardware)—have been stripped.

FreeBSD x64 is being included in this release.

I have only included the x86 macosx wrapper due to not having a
system to test the x64 code on. On the plus side, the wrapper is
universal (a FAT powerpc & Intel Mac) binary. No more prompting
to install Rosetta!

  • Property mode set to 100644
File size: 1.6 KB
Line 
1:: I2P Installer - Installs and pre-configures I2P.
2::
3:: postinstall.bat
4:: 2004 The I2P Project
5:: http://www.i2p2.de/
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
14setlocal
15
16if "%OS%"=="Windows_NT" (
17set INSTALL_PATH=%~dp0
18) else (
19set INSTALL_PATH="%1"
20)
21
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\all\wrapper.jar" "%INSTALL_PATH%lib"
25
26if "%OS%"=="Windows_NT" (
27
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"
33del /f /q "%INSTALL_PATH%startRouter.sh"
34:: del /f /q "%INSTALL_PATH%uninstall_i2p_service_unix"
35del /f /q "%INSTALL_PATH%icons\*.xpm"
36rmdir /q /s "%INSTALL_PATH%lib\wrapper"
37start /b /i /d"%INSTALL_PATH%" i2prouter.bat %INSTALL_PATH%
38
39) else (
40
41del "%INSTALL_PATH%eepget"
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"
48del "%INSTALL_PATH%startRouter.sh"
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"
53start /M "%INSTALL_PATH%i2prouter.bat" %INSTALL_PATH%
54
55)
Note: See TracBrowser for help on using the repository browser.