Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installing a Windows Service using InnoSetup
Message
From
14/09/2006 09:33:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Installing a Windows Service using InnoSetup
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01153647
Message ID:
01153647
Views:
599
Hi,

I need to install a service during installation of my application using InnoSetup.

Manually I would run this command from the command line:
sc create "My Server Name" binpath= "c:\program files\My server folder\My server.exe"
In this case the path to My Server.exe is determined during the installation, so I added in this command in the [Run] section of my script:
Filename: sc.exe; parameters: "create """"My Server Name"""" binpath= {code:GetDataDir}\My Server.exe"; WorkingDir: {code:GetDataDir}; Components: shared
but the service dose not get created. I don't get any error.

Is there another way to create a service? Maybe by writing some values to the registry?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Reply
Map
View

Click here to load this message in the networking platform