Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Conditionally installing registry

1 reply to this topic


  • Members
  • 9 posts

Posted 19 April 2004 - 04:28

Not sure if this should be in updating or patching forum....

Have a component that installs registry entries. During an upgrade I would like not install the entries again as they may have been changed by the application.

I have tried to set a condition on the component to 'Not Installed' with the reevaluate conidtion set to Yes. Unfortunately this removes the registry entries rather than just leaving them as they are.

Suggestions would be greatly appreciated


Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 19 April 2004 - 09:14

You can't use component conditions for this.

You could change your REINSTALLMODE to not include "m" (for HKLM data) or "u" (for HKCU data), but this setting is global to the MSI.

A better solution, because it will also work for (auto-)repair, would be to read any existing registry entry using AppSearch and RegLocator and write the contents of this property to the registry entry. Only if the property is empty (registry entry doesn't exist) you would set it to the default value using a custom action type 51 (set a property).