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

Install Exec Condition


1 reply to this topic

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 29 January 2007 - 07:40

i would just like to know on where could i find a documentation in this one....

To successfully run a custom action that is run from an installed file, you must ensure that the file is installed locally using a conditional statement:

If the custom action is sequenced before RemoveFiles—Run the action only if the component was installed locally.
(?ComponentName=3)

If the custom action is sequenced between RemoveFiles and InstallFiles—Run the action only if the component was installed locally. Do not run the action on an uninstallaton.
(?ComponentName=3) AND NOT($ComponentName=2)

If the custom action is sequenced after InstallFiles—Run the action only if the component will be installed locally.
($ComponentName=3)

The ComponentName is the component where is associated with the source file.


it seems that i could not find it in the installshield help.

Are this true?
(?ComponentName=3)
($ComponentName=3)

coz im using (&ComponentName=3) rather than ($ComponentName=3)



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 January 2007 - 09:41

For components, only $ and ? are valid prefixes. & and ! are used for features. See Conditional Statement Syntax in the SDK.