How do I start/stop/create/remove/check a service?: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
* Execute the NET command (use Exec, ExecWait or nsExec). | * Execute the NET command (use Exec, ExecWait or nsExec). | ||
* Execute your service EXE with special command line switches telling it what to do (use Exec, ExecWait or nsExec). | * Execute your service EXE with special command line switches telling it what to do (use Exec, ExecWait or nsExec). | ||
* Execute sc.exe that comes with WinXP (C:\windows\system32\sc.exe). Can be placed in Setup, also allows to define user account to run service under. | |||
[[Category:Scripting FAQ]] | [[Category:Scripting FAQ]] |
Revision as of 05:44, 14 September 2005
There are currently 6 known methods to handle services using NSIS scripting:
- Use Sunjammer's File:Services.zip.
- Use dselkirk's NSIS Service Lib.
- Use sl's nsSCM
- Use doberlec's all-in-one Swiss scripting knife - Nopey.
- Execute the NET command (use Exec, ExecWait or nsExec).
- Execute your service EXE with special command line switches telling it what to do (use Exec, ExecWait or nsExec).
- Execute sc.exe that comes with WinXP (C:\windows\system32\sc.exe). Can be placed in Setup, also allows to define user account to run service under.