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

Johri, Mohit mohit.johri at siemens.com
Wed May 17 02:48:02 PDT 2017


Thanks for the reply.

I was aware that we get the status in ExecutePackageComplete event, but I was unable to translate this status to error code and error message.

But I finally figured it out, below is the sample piece of code

if (e.Status != 0)
            {
                string error = new Win32Exception(e.Status).Message;
                ErrorMessageFromMsi = $"{error}. Code: 0x{e.Status:x8}";
                e.Result = Result.Error;
            }

Thanks & Regards,
Mohit


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar
Sent: 17 May, 2017 1:36 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] WiX 3.10.3 CustomBA, Error event not getting fired all the time.

OnExecutePackageComplete(ExecutePackageCompleteEventArgs e){
  if (e.Status < 0)
  {
     //  failed
  }
}


--

https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks




---- On Wed, 17 May 2017 10:50:29 +0300  Mohit Johri <mohit.johri at siemens.com> wrote ----

Hi Nir,

Thanks for the reply.

But is there any Bootstrapper event where we trap this error code or error message.

Thanks & Regards,
Mohit

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar
Sent: 16 May, 2017 11:00 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] WiX 3.10.3 CustomBA, Error event not getting fired all the time.

The error code you got means 'An installation is already in progress'. In this case, the error is returned before the MSI package has begun installing.OnError event is triggered for errors that occur during the installation. This error is simply to early to trigger the event.

Nir Bar
Panel::Software Architecture and Development

______________________________________________________________
JetBA.net- Native and WPF WiX BootstrapperApplication Frameworks








____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

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,

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/






____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

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