View Full Version : Minor Upgrades and RemoveRegistry

12-06-2004, 11:45 AM

I am currently writing a basic MSI project using Installshield 10.5. I have a problem in that one of my components is a .Net component registered for COM. This has the .NET COM Interop flag set to Yes. This component doesn't unregister itself when a minor upgrade is applied. Result is we have old registry entries left behind. I know that this is standard functionality, but as I am trying to automate the whole build process I would like a method of taking previous .reg files and populate the removeregistry table.

I have spoken to Installshield, but they said that the only way to get around this would be to do a major install everytime which is not a solution for me.

Am I going about this the wrong way, or is there something obvious I am missing.

Regards Raymond Hall-Reid

12-06-2004, 01:23 PM
With that kind of change, it will require a new component GUID (see Changing the Component Code (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/changing_the_component_code.asp)), which requires a change in ProductCode (see Changing the Product Code (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/changing_the_product_code.asp)). A change in ProductCode is a Major Upgrade (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/major_upgrades.asp).