huckfinn19
Programmer
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
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