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.
FOLLOW US
Get the latest news in Application Packaging