Never had to do this before, but I need to write information to the MSI log file during the installaiton process. It there a Custom Action that can be used or is there another way to do this?
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


This is for a vbscript CA

'// function call: msiLog "my message to the MSI log-file"
Function msiLog(Message)
Const msiMessageTypeInfo = &H04000000

Dim Record : Set Record = Nothing
Set Record = Session.Installer.CreateRecord(1)
Record.StringData(1) = Message

Session.Message msiMessageTypeInfo, Record
Set Record = Nothing
End Function
Answered 12/13/2007 by: AngelD
Red Belt

Please log in to comment
Other constants to use in place of msiMessageTypeInfo, if required:
Const msiMessageTypeFatalExit = &H00000000
Const msiMessageTypeError = &H01000000
Const msiMessageTypeWarning = &H02000000
Const msiMessageTypeUser = &H03000000
Answered 12/14/2007 by: VBScab
Red Belt

Please log in to comment