property inside a property? (is: Property Expansion) - 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!

CaP
Posts: 14
Joined: Thu May 10, 2012 6:23 pm

property inside a property? (is: Property Expansion)

Hello all,

I want to set a property, which in turn depends on another property.
For example I have defined the following properties on the Installation-Parameters page:
[MY_PROPWITHPATH]=BlahBlah[APPDIR]BlahBlah

During Install, when I do
Set Property [SomeProperty]=[MY_PROPWITHPATH]
I end up with
[SomeProperty]="BlahBlah[APPDIR]BlahBlah"
Instead of
[SomeProperty]="BlahBlah *value of [APPDIR]* BlahBlah"

Is there a way to have a multi-level expansion of properties, such that they can be nested?

Thanks!
CaP.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: property inside a property? (is: Property Expansion)

Hello,

In order to obtain what you want you should add a "Set Installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage" -> "Paths Resolution" action group from "Custom Actions" page, like this:
  • Property: MY_PROPWITHPATH
    Formatted: string[APPDIR]string

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CaP
Posts: 14
Joined: Thu May 10, 2012 6:23 pm

Re: property inside a property? (is: Property Expansion)

Thank you very much for your fast and well put reply.
(Might have mentioned that the sequence needs to go into the wizard-section)
The reliable support here is one strong argument for AI!

Regards,
CaP.

Return to “Common Problems”