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

Two setups using same dll - Problem when unistalling

Hello,
I have 2 independent msi-setups. Both setups register the same component named sc.dll using self-register. If I install both setups on a PC everything is fine. As soon as I uninstall one setup sc.dll is unregistered. This makes the other setup not working anymore. As soon as I manually register sc.dll everything is working again. Any idea how to solve the problem?

Thank you
Labels (1)
0 Kudos
(3) Replies
KEiGHT
Level 6

then put those .dll NOT to be removed 🙂
0 Kudos
Katerchen
Level 2

Hello KEiGHT,
this is not a solution, because I want a clean uninstall. One solution would be to do a custom action while uninstalling that re-register the dll if it still exists when the files have been removed. As I may have mentioned the dll is still in place. It is simple not registered anymore.

Does somebody know a better solution?

Thank you in advanced
Katerchen
0 Kudos
TsungH
Level 12

In Windows Installer, component ref count is managed by component GUID. When count is properly managed, you would not run into the problem described.

You will want to read up on Component Rules 101 and About Shared Components.
0 Kudos