Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Ability To View Edit Field Value With Password Attribute Set

Hello,

Can the ability be added to unmask the value of an edit field that has the password attribute set with a push button. For instance, I have a value that is not necessarily a password (API Key) that is complex and that I want hidden, but I would like to validate its accuracy by pushing a view button and once its released, it becomes masked again on the dialog.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Ability To View Edit Field Value With Password Attribute Set

Hello Les,

We already have an improvement regarding this (password "peek") on our TODO list of improvements.

However, this will only be possible by using the WinUI feature, because the Windows Installer does not support such scenario. The only problem with this would be that WinUI only works on Windows 10 and above.

For MSI, the only thing I can think of would be displaying a messagebox when the "PushButton" control is pressed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Ability To View Edit Field Value With Password Attribute Set

Catalin wrote: Mon Apr 18, 2022 9:28 am Hello Les,

For MSI, the only thing I can think of would be displaying a messagebox when the "PushButton" control is pressed.

Best regards,
Catalin
Thanks Catalin. I have tried the PushButton approach, but the PROP that sets the value still logs that value based on my attempt. It would be helpful if there was an AI CA that could display that without logging it.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Ability To View Edit Field Value With Password Attribute Set

Hello Les,

I am not quite sure I fully understand this.

Do you mean that the property appears in the log file?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Ability To View Edit Field Value With Password Attribute Set

Catalin wrote: Wed Apr 20, 2022 3:42 pm Hello Les,

I am not quite sure I fully understand this.

Do you mean that the property appears in the log file?

Best regards,
Catalin
Catalin,

That's correct.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Ability To View Edit Field Value With Password Attribute Set

Hello Les,

Have you tried setting the "Hide property" attribute for your property?

This should prevent the property from being displayed in the log file.

As per my tests, the property is not displayed in the log file. Its value is, however, displayed in the log file if you search for the "MessageBox" custom action and then check the value of "CustomActionData" property.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Ability To View Edit Field Value With Password Attribute Set

I did not set that attribute on the property that was on the message box, but I do remember seeing the value in the log file.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Ability To View Edit Field Value With Password Attribute Set

Hello Les,

Have you tried setting the attribute I mentioned above for the property?

That should prevent it from being written in the log file.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Ability To View Edit Field Value With Password Attribute Set

Hi Catalin,

Sorry for the late response. Yes, setting the Hide Property works .
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Ability To View Edit Field Value With Password Attribute Set

Hello Les,

No worries!

I am glad to hear it worked.

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

Return to “Feature Requests”