Run any windows application as NT (2000, XP) service
 

Register Any .exe file, or java application (.java) , or python script (.py) as a windows NT Service

Install service under windows for any application.




What is Service Installer

ServiceInstaller is a FREE utility that makes it easy to install programs as Windows NT (or 2000 or XP ) Services, including pure Java applications, and python scripts (without compiling them as .exe files via py2exe ) without manually editing the registry!

Free DOWNLOAD

DOWNLOAD : NT_service_installer.exe

This program has been developed by Kcmultimedia but is no longer hosted by them. Any way please accept the licence agreement here

Screenshot

Other tools

Examples

Installing a Java Application

Run ServiceInstaller to create a new service. (In this example, it
is assumed that java is installed at c:\jdk1.2)

Service Name : JavaTest
Display Name : JavaTest
Startup : Manual
Dependencies : (Leave blank)
Executable : c:\jdk1.2\bin\java.exe
Arguments : -cp c:\javatest Test
Working Directory : c:\javatest

After installing, open the Control Panel's Services applet, select
and start the JavaTest service.

Installing a Python script

Run ServiceInstaller to create a new service. (In this example, it
is assumed that python is installed at c:\python25\)

Service Name : PythonTest
Display Name : PythonTest
Startup : Manual (or whatever you like)
Dependencies : (Leave blank or fill to fit your needs)
Executable : c:\python25\python.exe
Arguments : c:\path_to_your_python_script\test.py
Working Directory : c:\path_to_your_python_script

After installing, open the Control Panel's Services applet, select
and start the JavaTest service.

FAQ

Can my service display any windows on the desktop?


Yes. After installing your service open the Control Panel's
services applet, select the service and under Startup...
options, check the option to "Interact with Desktop"

My java app is not running, although NT says the service is started.


In this situation, you should enable "Interact with Desktop"
(see above) so that you might see error messages reported by
Java. Such cases are nearly always due to a typo in the
classpath or other arguments supplied when installing the
service. The recommended procedure is to try running your
app from the console before installing it as a service, and
note the exact arguments used for a successful run. These
should be duplicated when you install your app as a service.

Remember that NT services run in the winnt/system32 directory
by default. If your Java app expects to find support files or
write log files, you should supply the name of the app's working
directory when you install the service.

If you are using JDK 1.1.x, you must specify the path to Java's
classes.zip in the classpath argument, along with your own
classpath directories. With Java 2, you only have to specify
the path to your own classes, using the -cp switch to the Java
VM.

Also, see note 7 above, concerning JDK 1.3 RC2, if that is
the version of Java being used.

My java app should generate a log file, but I cannot find it.

If you did not specify a working directory, look in winnt/system32for your output file. If it is not there, then run the service with "Interact with Desktop" enabled, and watch for error messages in the resulting console.
You can also check NT's event viewer for certain error messages that srunner will post if it cannot start the service.