Setting property doesn't persist - 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!

kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Setting property doesn't persist

I have 4 properties that get set by a custom dialog I made. When the "Next" button is clicked, I have published events to set the properties based on the value of a ComboBox on that same dialog. These property values then get written to an XML file that is generated dynamically by Advanced Installer.

The problem is that the default property values I have set are always the values written to the XML file, not the updated property values. I added a published event to call a custom action that simply displays (via MsgBox) the values of the properties after the "Next" button is clicked and the values it displays are the correct updated values, but the default values still get written to the XML file regardless.

I'm not sure why the default values are written to the XML even though the properties are clearly being updated according to the testing I've done. Any help would be appreciated! Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setting property doesn't persist

Hello,

This can happen if the properties you used are private( lower-case ) not public( upper-case ). For more information please follow this link.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Re: Setting property doesn't persist

Thanks Mihai, that was the problem. Oops.

Return to “Common Problems”