This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: services manipulation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
03:44 AM
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.
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.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
12:54 PM
For some of these settings, please see the SERVICE_IS_PARAMS help topic.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2008
07:48 PM
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2008
04:15 PM
anyone knew how to configure the service which already exist?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2008
04:33 PM
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.
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.