Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

self registered files are not deleted


4 replies to this topic

in_install

in_install
  • Members
  • 32 posts

Posted 07 March 2006 - 15:13

There are two dll files in project.

These are also key files and marked self registered(right click on file and checked the check box "Self-register).

During uninstallation these files are not getting deleted, u may manually delete it.

How to delete it during uninstallation ?? Is it because I marked them self registered and some thing more is required to be done ... some more custom actions are required for that....


Reply soon.

in_install

in_install
  • Members
  • 32 posts

Posted 07 March 2006 - 16:37

Tried following :

Shared NO
Permanent NO
COM Extract at Build Yes

On testing machine, deleted already existing entries for the files in following key:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs"


Now, when installing and then Uninstalling removes the files....Not sure my approach is really good one. Let me know this solution is correct or not.




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 March 2006 - 19:18

If the SharedDLL count is > 0 the files won't get removed because they are needed by another application (or the count is wrong, e.g. from a previous failed install attempt). Always test on a fresh Windows image.

in_install

in_install
  • Members
  • 32 posts

Posted 08 March 2006 - 07:41

Got it..My next question is when should I mark the file SHARED YES in MSI project.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 March 2006 - 18:22

If there's a chance that the same file might also be installed by another non-MSI setup. The Shared flag is for compatibility with legacy non-MSI setups.