[英]How to run windows start service using inno setup?
我想通过命令提示符使用inno setup.pls在图标部分运行Windows启动服务,帮助我解决这个问题
You don't run things through the [Icons]
section. 您不通过[Icons]
部分运行。
If you want an icon to start a service, use something like: 如果您想要一个图标来启动服务,请使用以下内容:
[Icons]
Name: {group}\Start Wibble service; Filename: net.exe; Parameters: "start wibbleservice";
Update after the question was clarified, but left here for posterity:
If you want Inno to start the service, you either use the
SCM API called from the
问题澄清后更新,但留给后人:
AfterInstall
entry of the service itself or a
[Run]
entry:
如果你想让Inno启动服务,你要么使用从服务本身的
AfterInstall
条目调用的
SCM API ,要么使用
[Run]
条目:
[Run] Filename: net.exe; Parameters: "start wibbleservice"; Description: "Starting wibble service"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.