bnsgroup
Posts: 10
Joined: Tue Aug 28, 2012 10:59 am

Setting Dialog properties with initial values

Hi,

I want to populate dialog edit boxes with initial values that I have read from a text file eg ini or xml. I write in Delphi so a Delphi example would be good or a vb example.
Clive
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Setting Dialog properties with initial values

Hello,

Unfortunately, we don't have predefined support for populate dialog edit boxes with values from a text file.

In order to achieve that you need to do your own custom action which will read a value from a text file and will set it in a property (e.g. MY_PROP). Then, you can use the above property for your edit box control. Also, the custom action should be scheduled before "Wizard Dialogs Stage -> User Selection" action group.

Please take a look on our "Read file text into installer property" article which debates a similar issue.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”