cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vdprks
Level 2

COM DLL is not unregistering when I do an uninstall from Add/Remove Programs

I have two installations, CA and CB (created using InstallShield 12)
Both CA and CB install the same library C.DLL
If I install CA, it installs C.DLL and works fine.
Then I install CB, and it still works OK
Then I uninstall CB, and CA no longer works, gives error that "Please ensure the C.DLL object is correctly registered."

How do I get this to work! Please help. I am pretty new to installshield.
Labels (1)
0 Kudos
(2) Replies
reachyouvenkat7
Level 4

Hi,

Whenever any dll is shared among different applications, the same will be recorded in Shared DLL's in registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls

Suppose abc.dll is got installed twice by the two different projects A and B. The count for abc.dll in SharedDll's(Registry) will be two. Another project C installs the same abc.dll , now the count will be 3.

When the project C uninsall the ref count in registry of abc.dll will be reduced to 2 and dll will not remove from the system.If A and B also uninstall the ref count will be 0 now. As the refcount is 0, the dll will be removed from the system.
0 Kudos
vdprks
Level 2

The problem here is: C.DLL is not being recorded in Shared DLL's in registry. Do I need to modify my InstallShield script to achieve the same.

However, C.DLL does exist in GAC. Please help.
0 Kudos