I am installing my product multiple instances using instance transform method.
· My product basically a windows service. When I install a instance of my product it will install service with some automatic generated display and service name.
· When I go for another instance , it will detect the already installed service and increment the count 1. I am able to do the earlier mentioned things.
Issue:
· When I try to uninstall each instances , I am expecting the windows service belongs to each instance should be uninstalled. I have written custom code on custom action of uninstall event in windows installer.
· When I uninstall the first instance of product (For example I have installed three instances) the corresponding service is not uninstalled, the uninstall custom action is not fired.
· When I uninstall second instance of product the same problem is happening.
· When I uninstall third (last instance of the product) instance of product, the corresponding windows service uninstalling properly(uninstall custom event is fired).
·
Why this uncontrolled behavior is happening in multiple instance concept. Please help me on this. Awaiting for your valuable reply.
(If you want I will explain in detail what I did.)