Skylla
Posts: 17
Joined: Thu Jan 24, 2013 1:44 pm

Setting the text of an Edit control when a button is pressed

Itried to follow this guide:
http://www.advancedinstaller.com/user-g ... -text.html

It works, except when i choose enhanced interface.

Is there a way to make it work together with the enhanced interface?
(or did i do something wrong?)
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Setting the text of an Edit control when a button is pre

Hi,

Indeed refreshing the dialog is the solution.

Also, another solution is to use another property in the "Set property" custom action (i.e. MY_PROP, not the property used by your edit box control) and also use "MY_PROP" property in the "Argument" text field of the "Set installer property value" published event.

For example:
The "Set property" custom action will be configured as follows:
  • Property: MY_PROP
    Formatted: Your value
The "Set installer property value" control event will be configured as follows:
  • Event Name: [MY_EDIT]
    Argument: [MY_PROP]
    Condition: 1
In this case you will not need to use the "AiRefreshDlg" property anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”