Ahh, then that is your answer. E.Status != 0 means apply failed.

>From the Wix BA,

        private void ApplyComplete(object sender, ApplyCompleteEventArgs e)
        {
            WixBA.Model.Result = e.Status; // remember the final result of the 
apply.

...

            // Set the state to applied or failed unless the state has already 
been set back to the preapply state
            // which means we need to show the UI as it was before the apply 
started.
            if (this.root.State != this.root.PreApplyState)
            {
                this.root.State = Hresult.Succeeded(e.Status) ? 
InstallationState.Applied : InstallationState.Failed;
            }
        }

-----Original Message-----
From: Nick Miller [mailto:nmil...@livetechnology.com] 
Sent: Thursday, May 30, 2013 11:41 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

That is from the ApplyComplete handler in my MBA...

public void OnApplyComplete(object sender, ApplyCompleteEventArgs e)
        {
                Bootstrapper.Engine.Log(LogLevel.Standard, "APPLY COMPLETE, 
e.STATUS: " + e.Status);
                ...
        }


-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com]
Sent: Thursday, May 30, 2013 12:33 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

I was talking specifically in your MBA, on the ApplyComplete handler.  I was in 
the 3.8 codebase, but Wix doesn't check for e.Error but rather e.Status.

-----Original Message-----
From: Nick Miller [mailto:nmil...@livetechnology.com]
Sent: Thursday, May 30, 2013 8:54 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

Thanks for the reply,

Here is the result when I break the CA:

APPLY COMPLETE, e.STATUS: -2147023293
APPLY COMPLETE, e.STATUS: -2147023293



-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com]
Sent: Thursday, May 30, 2013 2:41 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

Sorry for the delay, in your MBA, what is the value of e.Status from

private void ApplyComplete(object sender, ApplyCompleteEventArgs e)

________________________________________
From: Nick Miller [nmil...@livetechnology.com]
Sent: Wednesday, May 15, 2013 10:49 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

HI Jacob,

Yes, I wrote the CA myself, its pretty simple, it changes some values in an INI 
file based on choices the user makes during the install.  I have several custom 
actions that do different things, and I found that if any of them fail it does 
not return an error to my MBA.  I broke this one on purpose for testing, and if 
something goes wrong, I have it write the exception to the log, and return  
ActionResult.Failure.  Let me know if you need any more info.

Nick


-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com]
Sent: Wednesday, May 15, 2013 11:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

Not enough information in what you have provided to give you more info...

Did you write this CA yourself?  What does the CA do? Do you have logging 
turned on for the CA? To me, it sounds more like the CA is crashing and not 
actually sending an error back to the BA.  Debug the CA to identify the 
underlying exception.

-----Original Message-----
From: Nick Miller [mailto:nmil...@livetechnology.com]
Sent: Wednesday, May 15, 2013 9:53 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

Anyone have any ideas?

-----Original Message-----
From: Nick Miller [mailto:nmil...@livetechnology.com]
Sent: Tuesday, May 14, 2013 11:09 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

Tried looking for Result.Error, and InstallMessage.Error in ExecuteMsiMessage, 
and neither was triggered.  I see the following in the logs:

[0D48:0E58][2013-05-14T08:02:33]e000: Error 0x80070643: Failed to install MSI 
package.
[0D48:0E58][2013-05-14T08:02:33]e000: Error 0x80070643: Failed to execute MSI 
package.
[0A50:0344][2013-05-14T08:02:33]e000: Error 0x80070643: Failed to configure 
per-machine MSI package.

I also tried looking for Result.Error in ExecutePackageComplete, and 
ApplyComplete...


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: Tuesday, May 14, 2013 12:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] CA Error with MBA

CA messages come back to the MsiExecuteMessage() callback, IIRC.


On Mon, May 13, 2013 at 7:31 PM, Nick Miller <nmil...@livetechnology.com>wrote:

> Hi All,
>
> I have a managed bootstrapper application that installs a couple of 
> MSI I created, and for some reason the Bootstrapper.Error event never 
> fires when one of the custom actions fails.  The CA returns 
> ActionResult.Failure, and the install rolls back, but my installer 
> informs the user that the install was successful because there's no 
> error event raised.  Am I missing something in either the CA, MSI, or MBA?
>
> Thanks,
> Nick
>
> ----------------------------------------------------------------------
> -------- AlienVault Unified Security Management (USM) platform 
> delivers complete security visibility with the essential security 
> capabilities. Easily and efficiently configure, manage, and operate 
> all of your security controls from a single console and one unified 
> framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete 
security visibility with the essential security capabilities. Easily and 
efficiently configure, manage, and operate all of your security controls from a 
single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete 
security visibility with the essential security capabilities. Easily and 
efficiently configure, manage, and operate all of your security controls from a 
single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete 
security visibility with the essential security capabilities. Easily and 
efficiently configure, manage, and operate all of your security controls from a 
single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete 
security visibility with the essential security capabilities. Easily and 
efficiently configure, manage, and operate all of your security controls from a 
single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete 
security visibility with the essential security capabilities. Easily and 
efficiently configure, manage, and operate all of your security controls from a 
single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead Download 
for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead Download 
for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead Download 
for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead Download 
for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to