/build/static/layout/Breadcrumb_cap_w.png

Writing to MSI log during installation process

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   [ + ] Show comments

Answers (2)

Posted by: AngelD 16 years ago
Red Belt
0
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
Posted by: anonymous_9363 16 years ago
Red Belt
0
Other constants to use in place of msiMessageTypeInfo, if required:
Const msiMessageTypeFatalExit = &H00000000
Const msiMessageTypeError = &H01000000
Const msiMessageTypeWarning = &H02000000
Const msiMessageTypeUser = &H03000000
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ