cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
polosheng
Level 5

Log Function for installscript msi project

Does somebody know is there some log functions existed which can specify the log level?
By far, I just found SprintfMsiLog function, but it can just specify the log message.
In the cmd line parameter, I found that /L [i|w|e|a|r|u|c|m|p|v|+] parameter can specify the log level, so can I also specify the log level in script when writing log?

Thank you in advance for your help.:) :confused:
Labels (1)
0 Kudos

(3) Replies
RobertDickau
Flexera Alumni

MsiProcessMessage and Session.Message enable you to specify the message "level"; please see, for example, "MSI Tip: Writing to the Log File from a Custom Action" in the Tips & Tricks page.
0 Kudos
polosheng
Level 5

RobertDickau wrote:
MsiProcessMessage and Session.Message enable you to specify the message "level"; please see, for example, "MSI Tip: Writing to the Log File from a Custom Action" in the Tips & Tricks page.

Thank you for your quick reply.
But I also want to know whether I can specify the message level in installshield script.
As MsiProcessMessage is used in dll, and Session.Message is used in VB script.
0 Kudos
polosheng
Level 5

RobertDickau wrote:
MsiProcessMessage and Session.Message enable you to specify the message "level"; please see, for example, "MSI Tip: Writing to the Log File from a Custom Action" in the Tips & Tricks page.

Thank you again.
Actually I can use MsiProcessMessage in installshield script.:)
0 Kudos