Archive: Services


Services
Hi,

I am using NSIS to install a 3rd party piece of software. This software sets up a service. Unfortunately the default for this setup is to set the startup type to manual. I was wondering if there is anyway in NSIS to be able to change this setting and set it to automatic?

I have had a look at some of the tutorials and found the
!insertmacro SERVICE "action" "name" "param"
command but none of the actions seem relevant to what I am trying to achieve.

Thanks,
William


If none of the methods described in the FAQ item, you'd have to write a plug-in or call some API using the System plug-in. It seems the ChangeServiceConfig API function is what you need. Maybe it'd be simpler to recreate the service with the preferred start method, after the 3rd party setup ends.