I am trying to shift away from my own custom logging (which seems to fail with deferred custom actions) to logging into the MSI log.
The problem is that whatever MsiMessageType I specify, and whatever logging parameters I specify in the bootstrapper (last I tried "/learwp+ install.log") the message gets logged - but also a popup shows up with the log message. I would like to just log, not log and show a popup message. Is that possible?
This is the code that I am using to log to the MSI log file:
Code: Select all
var msiMessageTypeWarning = 0x02000000;
var rec = Session.Installer.CreateRecord(1);
rec.StringData(0) = "[1]";
rec.StringData(1) = msg;
Session.Message(msiMessageTypeWarning, rec);
(A problem possibly related is that I tried "/l* ...", but that dramatically increased the time that the installer required to run through, so I would like to stick to a smaller set of items being logged (like /lear, etc.).)
With best regards
Clemens Anhuth
FOLLOW US
Get the latest news in Application Packaging