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.
Photo

All Selected Features


2 replies to this topic

mark88

mark88
  • Members
  • 3 posts

Posted 24 July 2005 - 07:05

Hey,

I'm trying to make my InstallScript project input all selected features into the registry. I realize I can use IsFeatureSelected, but is there a dynamic way to do it instead of checking each and every feature?

Thanks in advance

Mark

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 July 2005 - 11:36

If you don't want to do it in script (looping through all features with FeatureIsItemSelected) you could simply add a registry entry to each feature (as part of a component that is included in that feature), so you would have one registry entry per feature that will only be installed if that feature is installed. Remember that for registry entries the same logic applies as for files, so if the feature is not selected the entry will not be written. And if the feature is later removed (in modify mode) the entry will be deleted together with the files.

mark88

mark88
  • Members
  • 3 posts

Posted 25 July 2005 - 18:52

Alright, thanks very much for your help. smile.gif