It would need to be a deferred action scheduled between InstallFiles and
InstallFinalize, or an immediate/deferred action pair where the immediate
action is scheduled as above and calls MsiDoAction (to place the deferred
action into the script) on the deferred action after creating a property to
feed its CustomActionData.

-----Original Message-----
From: michael_brindam...@dell.com [mailto:michael_brindam...@dell.com] 
Sent: Monday, May 10, 2010 5:41 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Looking for assistance using WIX to rollback an
install upon failure of a custom action.

Well, sort of, but it appears I've made a mistake - The custom action
currently is set to run after InstallFinalize, so I guess at that point,
it's sealed.  I need it to run after files are installed but before
InstallFinalize I think...  How could I configure it to do that?

Thanks!
        Mike


Michael Brindamour
Dell  |  Software Engineer
300 Innovative Way
Nashua, NH  03062  USA

michael_brindam...@dell.com
office:  1.603.589.5845

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Monday, May 10, 2010 7:15 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Looking for assistance using WIX to rollback an
install upon failure of a custom action.

If your custom action returns a failure code, the custom action is scheduled
before InstallFinalize, and you have not marked the custom action to ignore
the return codes, than that custom action will cause the entire transaction
to rollback and return the failure.

Is that what you are asking?

-----Original Message-----
From: michael_brindam...@dell.com [mailto:michael_brindam...@dell.com] 
Sent: Monday, May 10, 2010 12:16 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Looking for assistance using WIX to rollback an install
upon failure of a custom action.

Hi folks,
                Forgive me if this is posted on a FAQ somewhere, but after
an hour or so of googling, I was unable to find the answer.   I have
implemented a custom action to launch an executable I install and check some
connectivity prior to performing additional steps.  I would like to, if said
Custom Action fails, rollback the installation to that point.  Can anyone
help point me in the right direction?

Thanks!
    Mike

Michael Brindamour

----------------------------------------------------------------------------
--

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to