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

Conditions for Features


3 replies to this topic

yurikrt

yurikrt
  • Full Members
  • 4 posts

Posted 25 February 2009 - 15:11

Hi all
I want to install the feature only if specific table exists in data base.
So I created the custom action running by press Next button on SQLLogin dialog - but it doesn't work.
For example my sequence is

1 Create properties TABLE_EXISTS = FALSE
2 Features CreateTable with condition TABLE_EXISTS = TRUE

Any suggestion how I must be do it?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 February 2009 - 15:20

Feature conditions are evaluated during the CostFinalize action, before your dialogs are shown.

Instead you can add two control events to the "Next" button:
AddLocal FeatureName
Remove FeatureName
with motually exclusive conditions. This will select or un-select the feature when the button is pressed.

yurikrt

yurikrt
  • Full Members
  • 4 posts

Posted 25 February 2009 - 15:57

Thanks a lot.
I will try it now.

yurikrt

yurikrt
  • Full Members
  • 4 posts

Posted 25 February 2009 - 16:39

Great!!!!!!!!!

It's working.
Thank you very much!!!
P.S In additional the feature properties Require must be set to NO