PDA

View Full Version : Feature Specific Registry Changes Not Preserved on Save?



swalkertdci
06-22-2007, 12:31 PM
I have an installscript setup project that makes use of the standard registry functionality in the IDE. All of my registry keys and values are tied to specific features of the installation and not to the default branch. So my registry dialog looks something like this:

Default (Always Installed)
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_USER_SELECTABLE

Feature1
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
SOFTWARE
COMPANY
PRODUCT
ETC
HKEY_USERS
HKEY_USER_SELECTABLE

Feature2
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
SOFTWARE
COMPANY
PRODUCT2
ETC
HKEY_USERS
HKEY_USER_SELECTABLE

What I have noticed is that when I setup that particular registry structure through the IDE and then save the project and exit IS, when I reopen the project my registry view now looks like:

Default (Always Installed)
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
SOFTWARE
COMPANY
PRODUCT
ETC
PRODUCT2
ETC
HKEY_USERS
HKEY_USER_SELECTABLE

Feature1
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_USER_SELECTABLE

Feature2
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_USER_SELECTABLE

It appears that IS is merging all of my keys into the default instead of keeping them as part of the specific features where I want them. This is highly annoying and totally defeats the purpose of having feature-specific registry entries. Is this a bug in IS? If so, is there a fix / workaround to straighten this out?