Thursday, December 1, 2011

Application as a Service Installation

Use instsrv.exe and srvany.exe tools from the Windows 2003 Server Resource Kits.

Create New Service
  1. Copy instsrv.exe and srvany.exe from C:\Program Files\Windows Resource Kits\Tools\ tool to C:\Program Files\Srvany\
  2. Open command prompt and type in the following (replace <ServiceName> by the the name you want to assign to the service):
    "C:\Program Files\Srvany\instsrv" "<ServiceName>" "C:\Program Files\Srvany\srvany.exe
Configure the Service
Set the following registry keys:
"Application"="C:\\Program Files\\<Path to executable>"
"AppParameters"="<Application Parameters>"
"AppDirectory"="<Path to Application Directory>"

Use the following information to decide which account to use to run service:
  • The type of log on account you should select is usually determined by the requirements of the specific application.
  • Local System Account does not have network access.
  • If you need access to the screen and keyboard, you must choose System Account and allow the service to interact with desktop.
  • If you chose Local System Account, to allow access to the screen and keyboard, check the Allow Service To Interact With Desktop check box.
  • If you chose This Account, type or browse to specify a valid account name, and in Password and Confirm Password, type the same correct password for the account.