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

How to disable script-created features


2 replies to this topic

Gorichok

Gorichok
  • Full Members
  • 2 posts

Posted 19 June 2012 - 13:39

Hello everyone,

I need to show script-created features in Installshield X and disable them, so user can't deselect them. I found the following from the other topic in this forum, but it didn't work:

#define TREE_ITEM_ENABLED_SELECTED_STR "8192"
#define TREE_ITEM_ENABLED_DESELECTED_STR "4098"
// The following is the sum of the previous two defines.
#define TREE_ITEM_DISABLED_SELECTED_STR "12290"

nResult = FeatureSetData(MEDIA, szFeatureName, FEATURE_FIELD_FTPLOCATION, 0, TREE_ITEM_DISABLED_SELECTED_STR);

Can anybody tell me how can I disable script-created features?

Thanks in advance!

Gorichok

Gorichok
  • Full Members
  • 2 posts

Posted 19 June 2012 - 16:09

Forgot to say that I show the features using SdFeatureTree function

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 June 2012 - 10:36

I haven't done that in a while, but if I recall correctly I did it this way:
Create a dummy feature and make it selected in the setup type.
Make the other feature a required feature for the dummy feature. (This should make the other feature selected and disabled).
Set the dummy feature to invisible.