Page 1 of 1

Shared Service uninstallation issue

Posted: Thu Jun 28, 2007 8:00 am
by shawshank
I have a serious problem here. I have two products, each having their own IA setups. The products share a Service between themselves. So I do the following:
1. Install File "Service.exe" as Shared component.
2. Install Service "Service.exe".

This creates the registry entry for Shared component of "Service.exe" with RefCount = 2 (probably because of Install File (1) and Install Service (1), total = 2).
So, if both my products are installed the RefCount = 4.

The problem is when I uninstall one of the application the RefCount reduces by 2. But if I have used Control Service - Stop and Delete it goes ahead to uninstall and delete the service even though RefCount > 0. However, if I dont use Control Service - Stop and Delete option the service remains installed and running even after both the products are uninstalled.

Is there a way to solve this issue in IA? I want the service to be uninstalled and deleted only if no other product is using it. Any help would be highly appreciated.

Thanks in advance.