PDA

View Full Version : Permanent registry entry uninstalled



lonewolf32
04-11-2002, 01:23 PM
I have a component with no files, just registry entries. The component is set to Permanent=Yes and NeverOverwrite=No.

But on uninstall, the registry entry is removed.

My other component which has files in it has its properties set to Permanent=Yes and NeverOverwrite=Yes, and its registry entries are not removed in this situation (which is correct), but I can't use the NeverOverwrite configuration in the first component.

Does this have something to do with not having a key file in the component or something? I saw that IS only checks the key file in this situation. Is this normal behavior or is this a bug?

lonewolf32
04-23-2002, 10:24 AM
found a solution - although I'm not sure why this works. Perhaps someone can explain.

In my First UI After I manipulate said registry entry (our convention here at work is to not have trailing slashes, however when you specify [INSTALLDIR] as a registry value, it puts one there):

Get Registry Entry
StrRemoveLastSlash Registry Entry
Set Registry Entry

My fix was to add a Disable/Enable Logging pair around this set of statements.

Disable(LOGGING)
Get Registry Entry
StrRemoveLastSlash Registry Entry
Set Registry Entry
Enable(LOGGING)

But why does modifying the registry entry make it lose its permanent status?