cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ginolard
Level 3

Keyfiles not removed during Uninstall

I've noticed that any files that are marked as keyfiles of my components are not removed when the application is uninstalled.

Why is this?
Labels (1)
0 Kudos
4 Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Are there any shared reference counts for these files in HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDlls in the registry? If there are and the counts are greater than 1 before you uninstall, this will prevent Windows Installer from removing the components that installed these files.
0 Kudos
ginolard
Level 3

And how can I overcome this?
0 Kudos
thepeter
Level 7

You can set the component's attribute as not shared.
As a best practice you should only set the "shared" bit when you install in common locations (as Program Files\Common Files, System32, etc).
0 Kudos
retzcat
Level 6

Also make sure you have set the Uninstall flag under components to Yes
0 Kudos