Reputation: 1001
i want to run windows start service in the icon section through command prompt using inno setup.pls help me to solve this problem
Upvotes: 3
Views: 6158
Reputation: 24303
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"
Upvotes: 4