How to run windows start service using inno setup

inno-setupinstallationwindows-services

i want to run windows start service in the icon section through command prompt using inno setup.pls help me to solve this problem

Best Answer

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"