Windows Installer

There are 1 entries for the tag Windows Installer

Writing to EventLog from MSI custom action

I had a task to write to event log from within MSI custom action (WiX in my case, but that doesn’t matter) and the logging should be with the same source as MSI itself is using – e.g. “MsiInstaller”. I couldn’t find a proper way to do this and ended up writing to log myself, without using any of MSI API methods. I took the logging method from ATL with small modifications. Here it is: #pragma warning(push) #pragma warning(disable : 4793) ...