cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
guyjoules
Level 4

services manipulation

hey guys.

how do I, in pure InstallScript project, manipulate services?
I would like to add service and start it(that's easy to do), but I would also like to set the startup type, the recovery option, the dependencies, etc.

How do I do that?

Thanks,

Guy.
Labels (1)
0 Kudos
4 Replies
RobertDickau
Flexera Alumni

For some of these settings, please see the SERVICE_IS_PARAMS help topic.
0 Kudos
moinkhan
Level 5

RobertDickau wrote:
For some of these settings, please see the SERVICE_IS_PARAMS help topic.


How can I configure the service without installing it? I already had service installed, and only need to configure startup type? any idea?
0 Kudos
moinkhan
Level 5

anyone knew how to configure the service which already exist?
0 Kudos
TheTraveler
Level 8

Try modifying the the windows registry. All windows services and the settings are stored in the windows registry. Look up Registry Functions:

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx (strKey, strName, nType, strValue, nvSize);
RegDBSetKeyValueEx (strKey, strName, nType, strValue, -1)

If you look in the IS Help or this forum, you will see many examples of accessing the windows registry.
0 Kudos