471,863 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,863 software developers and data experts.

VB 2005 Multiple instance deployment

balabaster
797 Expert 512MB
Hi, I'm trying to figure out how to install multiple instances of a Windows Service on a single machine using the deployment Setup Project.

We have a Windows Service that's configurable through the app.config file so that the service can be configured to do different things when it's fired up. We have a number of different configurations that aren't compatible with each other and consequently need multiple instances of this service installed (on the same box).

Using the InstallUtil application, I was able to customize my Installer Initialize routine to ask the user for the name that is needed to be assigned to this Windows Service at install time. All of this works perfectly is far from professional. So my next step is to change the installer to receive the user input from the Project installer, which again all works fine and the service installs and runs as I would expect - I now have a professional setup program that installs my service.

The issue I'm running into is when I come to install the second instance of this component. The only issue with this is that the Setup Project doesn't seem to allow you the ability to install multiple instances of the same application on the same box.

Anyone have any ideas? I've scoured through books and all over the internet and have drawn a blank. Is there any way to do this with the Visual Studio 2005 Setup Project?

Cheers in advance!
Mar 27 '07 #1
1 1467
balabaster
797 Expert 512MB
I'm wondering if there's some way for the person installing the application to set the name of the application in the setup project, i.e. a page that says "What should this service be called?" and then it uses that for the name of the application in the Add/Remove programs list as well as the service name in the services list.

If anyone could give me a pointer in the direction of how I would go about achieving this, I would be most grateful.

Cheers again.
Apr 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Luther Miller | last post: by
16 posts views Thread by Kent | last post: by
10 posts views Thread by Steven Spits | last post: by
1 post views Thread by John Shadel | last post: by
10 posts views Thread by =?Utf-8?B?UHVuaXQgS2F1cg==?= | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.