When can I expect session properties to work? - 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!

BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

When can I expect session properties to work?

Hi Cosmin and other AI Gurus,

I have created two actions that use the same vb script.
Action #1
Is in the sequence after commit.
The type is File installed with the product.
APPDIR and ProductVersion are NOT set in the script.


Action #2
Is in the sequence after installFinalize
The type is File attached to installation.
APPDIR and ProductVersion ARE set in the script.


Is it true that the type must be “File attached to installation” to get and set session properties? When can I expect the get session properties to work?

Thanks
Bob
BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Re: When can I expect session properties to work?

Adding to my previous question,

I have another action in another project which is VBscript, type File attached to installation. This action is triggered off the “Finish” button in the ExitDialog”. In this case get APPDIR and ProductVersion work.

I’m confused by when get session properties should work.

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

Re: When can I expect session properties to work?

Hi Bob,

Please note that only Immediate custom actions have access to installer properties. A commit custom action will run as deferred, therefore it will not have access to properties. Please try setting your custom action as "Immediate" in the Custom Action Properties page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Re: When can I expect session properties to work?

I had not idea when properties would work and when they would not. Your quick and helpful reply solves the mystery.

Thanks Cosmin

Return to “Common Problems”