Windows Service Installation

G

Guest

Hi - I have a interesting issue that I am trying to resolve with a Windows
Service I created. I am trying to allow the end-user to install multiple
copies of the service on the same server (think SQL Server here, multiple
instances on the same system). I am able to set the services name during
installation to a unique name so that it appears as "Windows Service
[instance_name] in the SCM. What I am trying to do now is update the
TARGETDIR so that it includes the instance name as well. Example: "C:\Program
Files\My Company\My Service" would be changed to "C:\Program Files\My
Company\My Service.Instance_Name". Any ideas or references on how to do this
properly? I would greatly appreciate it. Thanks.
 
J

Jonathan Woods

Why don't u try to include Setup Project and Custom Setup Class
[RunInstaller(true)]?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top