I should notice that we have no security concerns about username & password.
I've used below script to log user name password but it is not working? Other properties are passed well but username/password which defined in database connection information are not shown up in the log file.
Code: Select all
Function WriteToLog
Const MsgType = &H04000000
Set rec = Installer.CreateRecord(6)
rec.StringData(1) = CStr("MyLog Log Enabled!") & vbNewLine
rec.StringData(2) = "MyLog USERNAME_PROP:" & CStr(Session.Property("USERNAME_PROP")) & vbNewLine
rec.StringData(3) = "MyLog PASSWORD_PROP:" & CStr(Session.Property("PASSWORD_PROP")) & vbNewLine
rec.StringData(4) = "MyLog DB Server Name:" & CStr(Session.Property("SERVER_PROP")) & vbNewLine
rec.StringData(5) = "MyLog DATABASE Name:" & CStr(Session.Property("DATABASE_PROP")) & vbNewLine
rec.StringData(6) = "MyLog INTEGRATED_SECURITY:" & CStr(Session.Property("INTEGRATED_SECURITY")) & vbNewLine
Session.Message MsgType, rec
WriteToLog = 0
End Function