cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sooraj_er
Level 4

Writing to MSI log from c# exe

I have a custom action (NEW EXE -> Path referencing a directory) calling a c# exe which does some system configurations. Is it possible for me to write to the msi log file from within this exe? If so, how can I do it?

Thanks & Regards,
Sooraj
Labels (1)
0 Kudos
(2) Replies
Christopher_Pai
Level 16

It's not possible as an EXE because it's running out of process and doesn't have access to the MSI handle.

Now if you want to google DTF managed custom actions you'll find information on how to do it as easy as

session.Log("hello world");
0 Kudos
sooraj_er
Level 4

Thanks a lot for your reply. I am exploring DTF so that I can use it in my MSI.
0 Kudos