ybe
Posts: 12
Joined: Fri Oct 09, 2020 9:27 am

Why does my Edit Box write every character into the log?

Mon Feb 22, 2021 11:22 am

In my installer dialog, I have one Edit Box that for some reason prints every character to the install log. So if I simply enter "Hello" in that Edit Box it comes out as follows:

MSI (c) (FC:7C) [11:25:05:838]: PROPERTY CHANGE: Modifying HOSTNAME property. Its current value is 'H'. Its new value: 'He'.
MSI (c) (FC:7C) [11:25:05:965]: PROPERTY CHANGE: Modifying HOSTNAME property. Its current value is 'He'. Its new value: 'Hel'.
MSI (c) (FC:7C) [11:25:06:157]: PROPERTY CHANGE: Modifying HOSTNAME property. Its current value is 'Hel'. Its new value: 'Hell'.
MSI (c) (FC:7C) [11:25:06:339]: PROPERTY CHANGE: Modifying HOSTNAME property. Its current value is 'Hell'. Its new value: 'Hello'.

Why does it do this? I just want it to print Hello, not every change..

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

Re: Why does my Edit Box write every character into the log?

Mon Feb 22, 2021 2:40 pm

Hello,

Please note that this is the normal behavior.

The value entered in the Edit Box control is stored in the form of an installer property.

At first, this will have an empty value, but with each character introduced in the Edit Box control, the value of the property is changed.

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

Return to “Building Installers”