Hop
Posts: 13
Joined: Mon Feb 15, 2010 2:22 pm

Correct attributes for sharing a registry entry

I have two separate products, each with their own installer, but they have one HKCR registry value they need to share. Currently, I have the registry key in its own component within each installer. I thought it made sense to flag the component for Shared DLL Reference counting (and Shared amongst packages -- even though I'm not requiring Windows Installer 4.5). Should I assign the same GUID for the component in both installers, or will MsiExec do the reference counting based on the registry key itself?

Are there other gotchas I should worry about?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Correct attributes for sharing a registry entry

Hello,
Should I assign the same GUID for the component in both installers, or will MsiExec do the reference counting based on the registry key itself?
Having the same component name, GUID and key member should suffice to share the component. You can forget about the other options.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”