cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eladef
Level 7

Write to MSI log file from installscript CA

Hi

I have Basic MSI project and using installscript,
Is there a way to directly write to the MSI log files with installscript CA ?
I already tried to use SprintfMsiLog in the installscript but it didn't worked probably since I run it through DoAction events,
Is there a way to make it work ?

Labels (1)
0 Kudos
(2) Replies
Jenifer
Flexera Alumni

Hi @eladef ,

 

To write to the MSI log, SprintfMsiLog uses the MsiProcessMessage API. This API does not work from custom actions launched through DoAction events.

Note that custom actions launched by a DoAction ControlEvent can send a message with the Message Method, but cannot send a message with MsiProcessMessage.

 

For more details:

https://docs.microsoft.com/en-us/windows/win32/msi/doaction-controlevent

 

Thanks,

Jenifer

0 Kudos

And what different type of CA I should use if I still want to use InstallScript and SprintfMsiLog  ?

0 Kudos