[wix-users] WiX 3.10.3 CustomBA, Error event not getting fired all the time.

Johri, Mohit mohit.johri at siemens.com
Mon May 15 22:10:02 PDT 2017

Hi All,

I am installing MSIs from a custom bootstrapper and if there is an error installing the MSI, I want to update the UI in the Bootstrapper with this info (and preferably with the error Message as well).

I have subscribed to the below events

BootstrapperApplication.Error += OnError;
BootstrapperApplication.ExecuteMsiMessage += ExecuteMsiMessage;
BootstrapperApplication.Progress += ApplyProgress;
BootstrapperApplication.ExecuteProgress += ExecuteProgress;
BootstrapperApplication.ApplyComplete += ApplyComplete;
BootstrapperApplication.ApplyBegin += ApplyBegin;
BootstrapperApplication.ExecutePackageBegin += ExecutePackageBegin;
BootstrapperApplication.ExecutePackageComplete += ExecutePackageComplete;

In some cases where I am getting the error from the custom action "OnError" events gets fired but in few cases the error handler is not called.

Below is one of the error where the error handler is not called( bootstrapper log showing that the bootstrapper is aware that the MSI has failed)

[17C4:164C][2017-03-09T06:08:08]e000: Error 0x80070652: Failed to install MSI package.
[17C4:164C][2017-03-09T06:08:08]e000: Error 0x80070652: Failed to execute MSI package.
[02E4:04A4][2017-03-09T06:08:08]e000: Error 0x80070652: Failed to configure per-machine MSI package.
[02E4:04A4][2017-03-09T06:08:08]i319: Applied execute package: Fitting, result: 0x80070652, restart: None
[02E4:04A4][2017-03-09T06:08:08]e000: Error 0x80070652: Failed to execute MSI package.

How do I get notified that there was an error installing an MSI in a WiX Bootstrapper? Is this some kind of a bug in 3.10.3 ?

Any help on this topic would be appreciated.

Thanks & Regards,

Registered Office: 130 Pandurang Budhkar Marg, Worli, Mumbai - 400018; Corporate Identity number: L28920MH1957PLC010839; Tel.: +91 (22) 3967 7000; Fax: +91 22 3967 7500;
Contact / Email: www.siemens.co.in/contact; Website: www.siemens.co.in. Sales Offices: Ahmedabad, Bengaluru, Bhopal, Bhubaneswar, Chandigarh, Chennai, Coimbatore, Gurgaon, Hyderabad, Jaipur, Jamshedpur, Kharghar, Kolkata, Lucknow, Kochi, Mumbai, Nagpur, Navi Mumbai, New Delhi,

More information about the wix-users mailing list