Dynamically Update XML Value by Property - 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!

metcalfed
Posts: 2
Joined: Thu Oct 21, 2010 7:46 pm

Dynamically Update XML Value by Property

Hello, recently purchased Advanced Installer and loving it so far. Have run into a snag though.

Information is gathered from the user during install and stored in Properties. Then those properties set values in an XML config file.

If I hard code in the values I want as Text, it works. Yellow as the value for the bg_color, for example

However, if I set it as [BGColor], which during install is set to Yellow, it doesn't recognize it. Obviously I am missing something simple, any help you can give would be much appreciated. Thanks!

-Darin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Dynamically Update XML Value by Property

Hello Darin,

You can only modify your XML element bg_color during install by using a public property(something like BG_COLOR instead of BGColor).
The difference is that the value of public properties passes from the InstallUISequence to the InstallExecuteSequence(in which the system is modified).

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
metcalfed
Posts: 2
Joined: Thu Oct 21, 2010 7:46 pm

Re: Dynamically Update XML Value by Property

Hello Mihai,

Thank you, that was exactly what I needed!

Return to “Common Problems”