![]() |
|
|
#7 |
|
Архивный участник
Join Date: Aug 2005
Posts: 113
|
to register it as a service, search for InstallUtil.exe, should be in a directory like C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 or so.
then you just use this bat file: (you have to change the SERVICE_HOME and the INSTALL_UTIL_HOME variables) Code:
@echo off set SERVICE_HOME=C:\PetitionD set SERVICE_EXE=PetitionD.exe REM the following directory is for .NET 1.1, your mileage may vary set INSTALL_UTIL_HOME=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 REM Account credentials if the service uses a user account set USER_NAME= set PASSWORD= set PATH=%PATH%;%INSTALL_UTIL_HOME% cd %SERVICE_HOME% echo Installing Service... installutil /name=ScriptedServiceExample /account=user /user=%USER_NAME% /password=%PASSWORD% %SERVICE_EXE% echo Done. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|