简体   繁体   English

需要一个(脚本)程序以使用NSIS脚本将应用程序安装为Windows服务

[英]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... 帮我...

你尝试过NsSCM或从任何其他服务插件维基

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.

相关问题 如何使用 NSIS 脚本将应用程序安装为 Windows 服务 - How to install application as windows service using NSIS script 使用NSIS脚本在远程计算机上启动Windows服务 - Start windows service on remote machine using NSIS script 使用nsis脚本启动自定义服务时出错 - Error starting custom service using nsis script 使用NAnt在构建脚本中安装/卸载Windows服务 - Install/Uninstall a Windows Service in a build script with NAnt 使用NSIS脚本安装后无法运行我的应用程序吗? - Can't get run my application after installing using NSIS script? 我需要将命令行脚本从Windows服务传递给程序 - I need to pass a command line script to a program from a windows service 打印作为Windows服务运行的脚本/应用程序 - Printing form a script/application which is running as Windows service 在 windows 服务应用程序中运行 python 脚本(没有用户登录) - Running a python script in a windows service application (no user logged on) 如何在批处理脚本中使用服务的显示名称删除Windows服务? - How to delete windows service using display name of the service in a batch script? 如何使用Java脚本使用Windows服务托管的WCF服务 - how to consume wcf service hosted by windows service using java script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM