i want to run windows start service in the icon section through command prompt using inno setup.pls help me to solve this problem
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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"