SachiG
Posts: 1
Joined: Tue Jul 26, 2022 5:59 am

Pre-populate Edit box of custom dialog

Tue Jul 26, 2022 6:16 am

Hi,
I created a custom dialog for user to input 'key'.
I would like to pre-fill an edit box if the value already exist from the previous installation.

In the edit box of custom dialog -> Property Name = KEY
Add new registry 'key' with Data 'KEY'
Select 'Permanent' attribute of 'key' in Organization page

With this settings reset the value every time I run the installer. How can I do this?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Pre-populate Edit box of custom dialog

Tue Jul 26, 2022 9:02 am

Hello Sachi and welcome to our forums,
I created a custom dialog for user to input 'key'.
I would like to pre-fill an edit box if the value already exist from the previous installation.
There are multiple ways of achieving this:

1. If the first version is not yet deployed

If the above is true, you can set in the first version of your setup the property where the user inputs the data (the property assigned to the specific control, i.e. an EditBox control) as a persistent property.

How do I make the properties in the package keep their values during Maintenance or Upgrade?

2. If the first version is already deployed and you saved what the user has input somewhere (e.g. in the registry)

If that is the case, then you can create a "Search" and then use that to populate the control.

Hope this helps!

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

Return to “Building Installers”