NSIS脚本安装Windows服务
方法如下:
Use Sunjammer's services plug-in:
Services.zip (20 KB).
Use dselkirk's NSIS Service Lib.
Use sl's nsSCM
Use doberlec's all-in-one Swiss scripting knife - Nopey.
Use Speed78's NSIS Simple Service Plugin
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). Also allows to define specific user account to run the service.
![](http://nsis.sourceforge.net/mediawiki/images/a/a0/Zip.gif)