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: How to configure a service during install?
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
‎Nov 03, 2009
02:18 PM
How to configure a service during install?
How do you configure a service that is already on the machine? I know if you are installing a new service you can configure it with the Install NT Service part of the component.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2009
02:34 PM
Pre 2010SP1, you can just use the Control NT Service node to start/stop/delete an installed sevice. You will have to use the Win32 APIs via a Custom Action or some script to configure an already installed service.
In 2010 SP1 / MSI5, you can use the new "Configure Settings" category under the new Services sub-node of a component to set many service options for an existing service.
In 2010 SP1 / MSI5, you can use the new "Configure Settings" category under the new Services sub-node of a component to set many service options for an existing service.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2009
02:47 PM
Thanks for that answer. I just called support a few minutes before posting this and they gave me no mention of a SP released and this ability in there. Downloading it now and will test it out.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
09:23 AM
For now MSI5 machines, like 2003 and 2008 (non-R2), is there anything built into IS to configure services?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
11:53 AM
You can use InstallScript. Look up ServiceInitParams and ServiceStartService for more info.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
12:11 PM
I don't know if it would be considered antiquated, but I still just use sc.exe launched from custom actions.. For example, my application uses WCF services so I must make sure the NetTCPPortSharing service is set to automatic if it's not currently, so I do something like this:
sc.exe config nettcpportsharing start= auto
also sometimes I modify the identity of services:
sc.exe config ServiceName obj= [UserName] password= [Password]
I personally find it much easier, plus I associate the custom actions with feature states instead of associating to a component that is just loosely tied to what I'm actually doing.
sc.exe config nettcpportsharing start= auto
also sometimes I modify the identity of services:
sc.exe config ServiceName obj= [UserName] password= [Password]
I personally find it much easier, plus I associate the custom actions with feature states instead of associating to a component that is just loosely tied to what I'm actually doing.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)