Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VS.NET Conditional Deployment of Services

Status
Not open for further replies.

huckfinn19

Programmer
May 16, 2003
90
CA
Hi all,

Here is my situation:

I have two services I want to package in a single setup program, using VS.Net deployment tools. Both services assemblies have the classes inheriting from System.Configuration.Install.Installer and have the ServiceProcessInstaller & ServiceInstaller configured correctly so that, when I add the two project outputs and then add custom actions of registering the services, the setup will register the services fine and then uninstall them fine as well. This is the perfect simple case scenario.

Now, what I want to do is to add conditions, make it the radio buttons UserInterface provided to select which service I want to install. Then, I apply the condition of the radio button 1 to my first service in both the "Project Output" and the "Custom Action Editor" and radio button 2 to the second service.

The installation works fine, choosing one of the two services with the radio button. The problem is that since I added conditions on the custom actions that install/uninstall my services, the uninstallation removes all the files (exe & dlls), but leaves the service registered in Windows! And then, I can't unregister the service! Even by using installutil.exe...

Any idea on how to do the conditional installation of a service with the uninstallation working in VS.Net deployment project?

Thanks,

I am using the framework .Net 1.1.

Huck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top