Logging password in plain text for .Net Installer Class Act - Advanced Installer Community
prafulla
Posts: 1
Joined: Thu Apr 03, 2014 3:14 pm

Logging password in plain text for .Net Installer Class Act

I am trying to use .Net Installer Class Action (custom action) to install a Windows Service to run under credentials provided by user during installation. The user password is saved in Windows Installer Property which needs to be passed on to this custom action via a parameter. I have also provided a path for log file in LogFile parameter. Everything works and services get installed with specified user account. But the log file generated as a result always logs the user password in plain text. This file is not deleted after the installation.

Is there a workaround to prevent password logging in plain text?

Sample log:
Running Install phase of non-transacted install
Installing assembly 'C:\Program Files\Sample Project\SampleService.exe'.
Affected parameters are:
reqversion = 2.0.50727
user_password = pass@word1
installtype = notransaction
logfile = C:\Users\ADMINI~1\AppData\Local\Temp\SampleService.log
domain_name =
assemblypath = C:\Program Files\Sample Project\SampleService.exe
action = Install
user_name = administrator
Installing service SampleService...
SampleService has been successfully installed.
Creating EventLog source DocumentConverterService in log Application...
SampleService started.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Logging password in plain text for .Net Installer Class

Hi and welcome to our forums,

From what I know there is no way to hide the property value from the log created by your custom action.

You have the option to hide property values only in the log generated by the main MSI package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”