Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th June 2003, 22:28   #1
Mosestycoon
Senior Member
 
Mosestycoon's Avatar
 
Join Date: Feb 2003
Location: outter space
Posts: 139
Send a message via ICQ to Mosestycoon
Question Set service to manual instead of automatic

How can this be achieved during installation-time. I have several services with their own parameters to start, stop, install, uninstall, etc.

But installing the service sets it to automatically startup.

Is there a way to set it to manual by default

Cheers Chris
Mosestycoon is offline   Reply With Quote
Old 16th June 2003, 10:38   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Call the ChangeServiceConfig API using the System plug-in (you can find a tutorial in the users manual).

MSDN info:

http://msdn.microsoft.com/library/de...viceconfig.asp
Joost Verburg is offline   Reply With Quote
Old 16th June 2003, 11:17   #3
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
You will also need to call some other Service API functions such as OpenSCManager(), OpenService(), and CloseServiceHandle() and optionally you would also need to call LockServiceDatabase() and UnlockServiceDatabase(). This would be much easier in a plugin, and if it would be useful to be able to control some of the attributes configurable using ChangeServiceConfig() and ChangeServiceConfig2() I can add support for this to the services plugin that I maintain.
Sunjammer is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump