
August 5th, 2005, 01:48 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 1
Time spent in forums: 8 m 20 sec
Reputation Power: 0
|
|
|
VS.NET Conditional Deployment of Services Problem
Hi all,
Here is the quick summary question and below, I'll explain what is the bigger picture:
Using VS.Net deployment project, how can I register 2 services conditionnally (in the Custom Action Editor section) and make sure that they uninstall correctly?
Longer description of the problem:
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 registers the services fine and then uninstalls 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 that the template User Interfaces provide 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 conditional installation of 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
|