source: installer/resources/uninstall_i2p_service_winnt.bat @ 9e6f993

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

De-fuglify the service path in Windows

The default service path in Windows is fugly and not very convenient. I2P uses
the correct path, but if you want to access snark or eepsite data, one must go to
%SYSTEMROOT%\config\systemprofile\AppData?\Roaming\I2P\ (Vista/7) or
%SYSTEMROOT%\system32\config\systemprofile\Application Data\I2P (XP/2003). If
this wasn't bad enough, in some cases one must take ownership of this path and
grant permission to him- or herself to access the folder.

With this changeset, I'm setting the path to %ALLUSERSPROFILE%\Application
Data\I2P as well as adding a shortcut to the I2P folder in the Start menu.

  • Property mode set to 100644
File size: 771 bytes
Line 
1@echo off
2setlocal
3
4rem
5rem Java Service Wrapper general NT service uninstall script
6rem
7
8if "%OS%"=="Windows_NT" goto nt
9echo This script only works with NT-based versions of Windows.
10goto :eof
11
12:nt
13rem
14rem Find the application home.
15rem
16rem %~dp0 is location of current script under NT
17set _REALPATH=%~dp0
18set _WRAPPER_EXE=%_REALPATH%I2Psvc.exe
19call "%_REALPATH%"\set_config_dir_for_nt_service.bat uninstall
20
21rem
22rem Find the wrapper.conf
23rem
24:conf
25set _WRAPPER_CONF="%~f1"
26if not %_WRAPPER_CONF%=="" goto startup
27set _WRAPPER_CONF="%_REALPATH%wrapper.config"
28
29rem
30rem Uninstall the Wrapper as an NT service.
31rem
32:startup
33"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
34if not errorlevel 1 goto :eof
35if "%2"=="--nopause" goto :eof
36pause
37
38:eof
Note: See TracBrowser for help on using the repository browser.