Added sub-feature now gets Error -142 during
Posted 12 November 2009 - 18:42
To be clear I have done the following:
Existing Install already is on user's PC
Added new sub-feature
Added new component to new sub-feature
Updated GUID on existing feature
Getting Error: -142 during FeatureGetData (system function, not mine)
Originally got no error after adding the new sub-feature but files associated with new feature did not show up, so I updated the GUIDs thinking the install would see the features as new and add the files. After many tries and rebuilding, I now get the above error after I include other existing features.
Any advice is greatly appreciated.
Posted 17 November 2009 - 21:38
But...I am wondering why when I add new features\components the associcated files won't copy over???
Does anyone have this problem?
Posted 19 November 2009 - 17:25
To address this issue, I would review the chosen features for each of the available setup types to ensure that any new ones are properly selected. You may also need to manually override the default selections via the following IS code:
|nResult = FeatureIsItemSelected(MEDIA, <FeatureName>);|
if (nResult = FALSE) then
nResult = FeatureSelectItem(MEDIA, <FeatureName>, TRUE);
Finally, you shouldn't need to mess with a feature's GUID and I would recommend leaving it alone unless you truly find it necessary.
Edited by Taco Bell, 19 November 2009 - 17:25.