Consultor Eletrônico



Kbase 19281: How to run the Progress *client* as a service
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/11/1999
Title : How to run the Progress *client* as a service

KnowledgeBase number: 19281
This document applies to: Progress and Windows NT 4
Version and Release Number: Progress 8.3B and later


This Kbase can be usefull if you need to run a Progress program as a NT service.

Pre-required:
=============
NT Ressource Kit has to be installed
Instrsrv.exe and Srvany.exe files which come with NT Ressource Kit

This Kbase contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs.


PROCEDURAL APPROACH:
====================

1. From NT command prompt, type the following command:

<path>\INSTSRV.EXE <My Service> <path>\SRVANY.EXE

where <path> is the drive and directory of the Windows NT Resource Kit and <My Service> is the name of the service you are creating.


2. Run Registry Editor (Regedt32.exe) and locate the following subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<My Service>


3. From the Edit menu, click Add Key. Type the following and click OK:

Key Name: Parameters
Class : <leave it blank>


4. Select the Parameters key.


5. From the Edit menu, click Add Value and fill the following information :

Value Name: Application
Data Type : REG_SZ
String : <path>\<application.ext>

<path> is the drive and directory of the executable you want to execute

<application.ext> is the executable name (Extension is required)

Example : If I have test.p program which needs to be executed using prowin32.exe, I need to enter the following :

Value Name: Application
Data Type : REG_SZ
String : <path>\prowin32.exe -p test.p


6. Close Registry Editor


From now, the service is part of NT Service and works as a normal NT Service.


REFERENCES TO WRITTEN DOCUMENTATION:
====================================

NT Ressources Kit Helps

jmr (26/11/99)