我想通过命令提示符使用inno setup.pls在图标部分运行Windows启动服务,帮助我解决这个问题
You don't run things through the [Icons]
section.
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:
[Run] Filename: net.exe; Parameters: "start wibbleservice"; Description: "Starting wibble service"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.