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

Using MsiSetFeatureState()


1 reply to this topic

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 03 February 2003 - 15:08

I've written a custom action that calls a function from a dll, the code is written in MSVC.
  What I'm trying to do is based on some logic select certain features, but I can't seem to be able to get the MsiSetFeatureState() API to work. The function is returning success, but when the Custom Setup dialog appears, the feature hasn't been selected.
  Can this method be called from a custom action? If not, then how can I select a feature from one?


Thanks,
Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 03 February 2003 - 20:48

Figured this one out.  I needed to move the custom action to be called after the CostFinalize action.



Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project