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

Associating custom action with feature


1 reply to this topic

spacer21

spacer21
  • Members
  • 19 posts

Posted 08 July 2004 - 10:50

hi,

how can i associate a custom action with a feature?

i have two features in my installation 1)Server and 2)Client. when server or both are selected a custom is to be run and in case of client must not run. are there any conditions associated with feature ids?

regards

Martin Aigner

Martin Aigner
  • Full Members
  • 133 posts

Posted 08 July 2004 - 12:06

Hi,

you can associate a custom action with a feature with the operator ! (Install State - this is the state before the installation) and & (Action State - this is the expected state after the installation).

There value for "install local" is 3 and the value for "absent" is 2.

For example if the Featurename is "Server" then the condition for Installation is
(!Server=2 And &Server=3). The condition for uninstall is (!Server=3 And &Server=2).

You can find more information in the Windows Installer online help at topic "Conditional Statement Syntax".

Regards
Martin
SD-Technologies GmbH
Macrovision Certified Training Partner.
More infomation at www.sd-technologies.de