Changeset 690f62b


Ignore:
Timestamp:
Sep 10, 2011 3:50:49 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
d084d18
Parents:
3aa7f19
Message:

Update i2prouter.bat

This is based on WRAPPERSRC/src/bin/StartApp-NT.bat.in from 3.5.9 of the
wrapper. The i2prouter.bat that we ship doesn't work; this one does. Tested in
XP and Win7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/i2prouter.bat

    r3aa7f19 r690f62b  
    11@echo off
    22setlocal
    3 set INSTALL_PATH="%1"
     3
     4rem Copyright (c) 1999, 2011 Tanuki Software, Ltd.
     5rem http://www.tanukisoftware.com
     6rem All rights reserved.
     7rem
     8rem This software is the proprietary information of Tanuki Software.
     9rem You shall use it only in accordance with the terms of the
     10rem license agreement you entered into with Tanuki Software.
     11rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
     12rem
     13rem Java Service Wrapper general startup script.
     14
     15rem -----------------------------------------------------------------------------
     16rem These settings can be modified to fit the needs of your application
     17rem Optimized for use with version 3.5.9 of the Wrapper.
     18
     19rem The base name for the Wrapper binary.
     20set _WRAPPER_BASE=i2psvc
     21
     22rem The name and location of the Wrapper configuration file.   This will be used
     23rem  if the user does not specify a configuration file as the first argument to
     24rem  this script.
     25set _WRAPPER_CONF_DEFAULT=./wrapper.config
     26
     27rem Note that it is only possible to pass parameters through to the JVM when
     28rem  installing the service, or when running in a console.
     29
     30rem Do not modify anything beyond this point
     31rem -----------------------------------------------------------------------------
    432
    533rem
    6 rem Java Service Wrapper general startup script
     34rem Resolve the real path of the wrapper.exe
     35rem  For non NT systems, the _REALPATH and _WRAPPER_CONF values
     36rem  can be hard-coded below and the following test removed.
    737rem
     38if "%OS%"=="Windows_NT" goto nt
     39echo This script only works with NT-based versions of Windows.
     40goto :eof
    841
    9 set _WRAPPER_EXE=%INSTALL_PATH%I2Psvc.exe
    10 set _WRAPPER_CONF="%INSTALL_PATH%wrapper.config"
     42:nt
     43rem
     44rem Find the application home.
     45rem
     46rem %~dp0 is location of current script under NT
     47set _REALPATH=%~dp0
    1148
     49rem
     50rem Decide on the specific Wrapper binary to use (See delta-pack)
     51rem
     52if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
     53if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
     54set _WRAPPER_L_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
     55goto search
     56:amd64
     57set _WRAPPER_L_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
     58goto search
     59:ia64
     60set _WRAPPER_L_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-ia-64.exe
     61goto search
     62:search
     63set _WRAPPER_EXE=%_WRAPPER_L_EXE%
     64if exist "%_WRAPPER_EXE%" goto conf
     65set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
     66if exist "%_WRAPPER_EXE%" goto conf
     67echo Unable to locate a Wrapper executable using any of the following names:
     68echo %_WRAPPER_L_EXE%
     69echo %_WRAPPER_EXE%
     70pause
     71goto :eof
     72
     73rem
     74rem Find the wrapper.conf
     75rem
     76:conf
     77set _WRAPPER_CONF="%~f1"
     78if not [%_WRAPPER_CONF%]==[""] (
     79    shift
     80    goto :startup
     81)
     82set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT%"
     83
     84rem
     85rem Start the Wrapper
     86rem
     87:startup
    1288"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
    1389if not errorlevel 1 goto :eof
    1490pause
    1591
     92:eof
Note: See TracChangeset for help on using the changeset viewer.