DDi
Posts: 17
Joined: Tue Feb 25, 2014 1:22 pm

Hide properties even when debug level is 7

We have created a new project using the default dialog 'LogonInformationDlg' to set the user of a installed service.
This dialog sets the USER_PASSWORD property which is most likely a secure/hidden property.

On a clean windows install this would result in the log file not showing the password property or at least showing it as '****'.
However when a user on a machine sets machine Debug level to a value of 7, the installer log will show the password in plain text.

Is there a solution to hide the password property even when the machine Debug level is set to 7.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Hide properties even when debug level is 7

Hello,

That property is not quite hidden/secure.

It is indeed true that the control has the "Password" option enabled for it, which shows the dot character when the user types it in.

However, the property that stores it is not hidden/secure. To change this, please go to "Properties" page and check the "Show properties with empty values or used in dialog controls" option.
SecureProperty.png
SecureProperty.png (108.96 KiB) Viewed 2319 times

Double click on the property name and then check the "Hidden" option (or "Secure property").

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DDi
Posts: 17
Joined: Tue Feb 25, 2014 1:22 pm

Re: Hide properties even when debug level is 7

Thank you for the quick response,

We have also tried to set a new property with the secure AND hidden attributes. Which works the same as changing the USER_PASSWORD property attributes. However as mentioned before, when the machine debug policy is set to 7 it will still show up in the log of the MSI.
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Hide properties even when debug level is 7

Hello,

Please keep in mind that if at install time the current machine Debug policy is set to a value of 7, then the installer will write the property in the log, even if the property is marked as hidden.

Please have a look on the MSFT Preventing Confidential Information from Being Written into the Log File article.

Can you please set the "Password" attribute for the control to "TRUE" and see if that helps you?
password.png
password.png (29.64 KiB) Viewed 2296 times

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”