[英]Need a (script)procedure to install an application as windows service using NSIS script
I having 3 .exe files (1.exe, 2.exe and 3.exe) and 2 .msi files (1.msi and 2.msi). 我有3个.exe文件(1.exe,2.exe和3.exe)和2个.msi文件(1.msi和2.msi)。 Using NSIS script I created a Package.
使用NSIS脚本,我创建了一个包。 By installing that package this service should be in Windows services window.
通过安装该软件包,该服务应位于Windows服务窗口中。 But I do not know the script to register this service.
但是我不知道注册该服务的脚本。 Help me thanks.
帮帮我谢谢。
Actually I used Exec '"C:\\Windows\\System32\\sc.exe" "MY Service Name"'
Even though I couldn't find my service in this path Start Menu -> Control Panel -> Administrative Tools -> Services. 实际上,我使用了
Exec '"C:\\Windows\\System32\\sc.exe" "MY Service Name"'
即使在此路径下也找不到我的服务,开始菜单->控制面板->管理工具->服务。 Help me... 帮我...
Use SERVICE plugin ( ServiceLib ) from here: http://nsis.sourceforge.net/NSIS_Service_Lib 从此处使用SERVICE插件(ServiceLib): http : //nsis.sourceforge.net/NSIS_Service_Lib
Does the job well! 做得好! ;)
;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.