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

Condition of a Custom Action


3 replies to this topic

Ajawl

Ajawl
  • Members
  • 54 posts

Posted 07 March 2002 - 20:10

I need to run a Custom Action only if a Feature "XYZ" was selected to be installed.
How can I write the condition for this Custom Action?

Thank you for your help,
Ajawl

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 07 March 2002 - 23:35

In the sequence table, set the condition to be &XYZ = 3.  The action will then only be executed when feature XYZ is selected to be installed locally.
Leigh Ravenhall
Expert Information Services

Ajawl

Ajawl
  • Members
  • 54 posts

Posted 08 March 2002 - 09:18

Hi Leigh Ravenhall,
Thank you for your help.
I have already seen also in other setups conditions like $ComponentName=3 OR ?ComponentName=3, but I dont find any information in the help about these operators.
Can you give more information, or where can I found this help?
Is there any other value or just "3"?

Thank you very much,
Ajawl

hteichert

hteichert
  • Members
  • 158 posts

Posted 08 March 2002 - 11:14

For further information about conditions on features or components have a look in the MSI documentation. Search for "Conditional Statement Syntax". Everything possible is described in there.
MSI docu is available in Windows installer SDK, downloadable from MS for free, and also in ISWi.

Hope it helps
Holger
h.teichert-ott