PDA

View Full Version : removing files when it should



oBladeo1
12-14-2005, 08:21 AM
I have moved back to 11 after all of 2 seconds testing lol

BUG

I have two installs that install the same file on a machine and for some reason the uninstall is ignoring the shareddlls key and removing the file when i remove one of them. This file is a key file and a exe if thats any help

TsungH
12-14-2005, 03:32 PM
Just curious. What's the Component GUID of the 2 components which install the same file?

oBladeo1
12-15-2005, 03:13 AM
Just curious. What's the Component GUID of the 2 components which install the same file?


There diffrent but that does not matter because it works fine in 11

TsungH
12-16-2005, 11:46 PM
If they are MSI-based installations, different component GUIDs will probably be a factor. When identical component GUID is used, MSI will be able to reference-count (see this (http://www.installshield.com/news/newsletter/archives/0012_50ef.asp) and Component 101 (http://blogs.msdn.com/robmen/archive/2003/10/18/56497.aspx) by Bob Mensching (http://blogs.msdn.com/robmen/)) the file correctly. With different component GUIDs for the same file, MSI may not be able to maintain an accurate reference count and remove it when one of the installations is uninstalled.