方法如下:
  • Use Sunjammer's services plug-in: NSIS脚本安装Windows服务 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.
  • 相关文章: