execution condition for deferred action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shelmers
Posts: 63
Joined: Thu Sep 03, 2009 9:02 pm
Location: Andover, Massachusetts USA

execution condition for deferred action

I know that session properties, with the exception "CustomActionData", are not available during deferred execution. I had assumed, however, that I could use property values to set execution conditions for deferred actions. But it appears that isn't true.

Two questions:
1) Is it true that I cannot use property values to condition execution of deferred custom actions?
2) Assuming #1 is true, is my only recourse to insert the logic in my deferred action script to control execution of the script? For example, I will pass a property value as Action Data and use the value of

Code: Select all

session.property("CustomActionData")
to decide whether to execute the code. Is there a better alternative?

Thanks,
Scott
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: execution condition for deferred action

Hi Scott,
Is it true that I cannot use property values to condition execution of deferred custom actions?
No, custom action conditions are evaluated before the installation starts, so you can use properties in them.

I'm not sure why the condition you are using doesn't work. Can you please send us the AIP (project) file you are using and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shelmers
Posts: 63
Joined: Thu Sep 03, 2009 9:02 pm
Location: Andover, Massachusetts USA

Re: execution condition for deferred action

Thanks for the prompt response. Let me investigate further then I'll get back to you.
shelmers
Posts: 63
Joined: Thu Sep 03, 2009 9:02 pm
Location: Andover, Massachusetts USA

Re: execution condition for deferred action

:oops: User error!

Turns out that an unrelated error led me to suspect properties in an execution condition.

I'm glad to know that execution conditions for deferred actions can include properties. Feel free to delete this thread so my question doesn't mislead anyone else...

Return to “Common Problems”