cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_sandal_
Level 3

please help!! how to enable disabled system service?

Hi all,

I'm working with Basic MSI project.

I need to start .net framework standard service during installation ("Net.Tcp Port Sharing Service" service).
I was trying to do it though custom actions, but I didn't find the proper way to point to the service from custom action. 😞

How to work with existent services?


great thanks for the help!!!
Labels (1)
0 Kudos
(2) Replies
_sandal_
Level 3

I found the way to control services through "Control NT Services" component type. But, it works only when the service is enabled. But often the situation is that this service is disabled and should be enabled first.

Can anyone explain me how to enable it?

I'm sorry for these simple questions, I've just started with installations at all.
0 Kudos
Kelter
Level 10

in a similar situation, i scripted the necessary functionality to make use of the Windows api...

A good resource for this may be found here on installsite...
(See: Starting, Stopping and Deleting NT Services)

Now that i think of it, however, this thread might be a bit more current.
0 Kudos