Passing Value of a Parameter in InstallFinalize - 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!

BCh
Posts: 63
Joined: Wed Jan 17, 2007 6:32 am
Location: Australia

Passing Value of a Parameter in InstallFinalize

I have a program that is called, based on an expression (defined in Custom Behavior search) in custom actions | InstallExecuteSequence | InstallFinalize.

While I can pass a search value as a parameter in the command line (called within InstallFInalize) via "[#Program]" FILESEARCH
was wondering how I could get the actual value of the file search parameter NOT the parameter name.

For example.
I have defined a search value to store the file version of a previous installed program. I reference this search in the custom action execution condition no problems.

Was wondering how I can pass this file version back to a program I call as part of InstallFinalize?

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Passing Value of a Parameter in InstallFinalize

Hello,

You can simply place FILESEARCH between square brackets to get the property's value, like this

Code: Select all

[FILESEARCH]
Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”