I've written an InstallScript bit that executes as an action to hide a feature. It looks like
If I use SprintfBox to display the contents of MEDIA I get "DATA" and the call fails w/ an error of 3 which means nothing to me. I figured it meant that I screwed up naming the feature so I wanted to get a list of features so I added in code to get a list of top-level features as so...
That shows a dialog box w/ no content in it.
Why would there be no features listed? What am I doing wrong?
rjsjr
Code:
nResult = FeatureSetData (MEDIA, "MyFeatureNameHere", FEATURE_FIELD_VISIBLE, FALSE, szData);
if(nResult < 0) then
FeatureError(MEDIA, szFeature, svComponent, svFile, nvError);
SprintfBox (INFORMATION, "FeatureGetData Error Information",
"FeatureGetData had the following error:\n\n" +
"Media Name: %s\nFeature: %s\nComponent: %s\n" +
"File: %s\nError Number: %ld",
MEDIA, szFeature, svComponent, svFile, nvError);
endif;
If I use SprintfBox to display the contents of MEDIA I get "DATA" and the call fails w/ an error of 3 which means nothing to me. I figured it meant that I screwed up naming the feature so I wanted to get a list of features so I added in code to get a list of top-level features as so...
Code:
listId = ListCreate(STRINGLIST);
FeatureListItems(MEDIA, "", listId);
SdShowInfoList ("Features", "Message", listId);
That shows a dialog box w/ no content in it.
Why would there be no features listed? What am I doing wrong?
rjsjr