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

Hiding features at runtime


1 reply to this topic

Dyerald

Dyerald
  • Members
  • 43 posts

Posted 28 September 2001 - 08:23

Hi,

Im new in ISWI 2.03 and my project needs to hide/show some features in the CustomSeup dialog depending on what the user will enter in the registration or serial number? Is it possible? How can I do this? Any idea???

I would very grateful for any help. Thanks in advance.

Dyerald

(Edited by Dyerald at 8:44 am on Sep. 28, 2001)


ringoSF

ringoSF
  • Members
  • 16 posts

Posted 01 October 2001 - 18:01


1.) Define a public variable
   for ex: SHOWFEATURE_1(has to be upper case)

2.) Set the condition of that feature to
1   SHOWFEATURE_1="YES"
0   SHOWFEATURE_1="NO"

3.) If you want to hide the feature during run time, you need do it in the custom action
   Using API function MsiSetProperty() to set SHOWFEATURE_1 to "NO"

4.) Call API MsiDoAction(hInstall, _T("CostFinalize"))
   
hope this helps.