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!

ofirka
Posts: 2
Joined: Sun Sep 08, 2019 12:49 pm

Nested Property not updating with new value

Hi,

I'm trying to set a property within another property and can't make it happen.
In my installer, I created two properties:
1. MY_PROPERTY = 1.
2. MY_JSON_PROPERTY = {<some values>, my_property: [|MY_PROPERTY]} which represent a json that will be written to registry, and includes MY_PROPERTY in it.
When I try to set MY_PROPERTY from the cmd in the installation process, I can see in the log that MY_PROPERTY is being updated with the new value (for example 2), but MY_JSON_PROPERTY is not recursively updated with it.

Is there a solution for this that I am missing? Is it a bug?

thanks :)
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Nested Property not updating with new value

Hello,

From what I can see, you are using the following syntax:

Code: Select all

[|MY_PROPERTY]
Please note that specific syntax is specific to pseudo-formatted type.
The Advanced Installer PseudoFormatted data type is a string which can contain references to Properties. At build time the property references are replaced with the value of the respective properties.
As we can see, the property is referenced a build time, not install time when you pass the new value of MY_PROPERTY.

That being said, could you please try using the property without the pipe character "|" and let me know if that helps?

If not, then please give me a step-by-step test case so I can run some tests on my end.

Best regards,
Catalin
:)
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”