469,572 Members | 1,232 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

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 1377
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 suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.