Add this:
<InstallExecuteSequence>
<Custom Action="your custom action's Id" Before="InstallFinalize" />
</InstallExecuteSequence>
If you already have an installexecutesequence then just add the <Custom>
element anywhere inside that instead.
Make sure your existing <CustomAction> element has the Execute attribute set to
"deferred".
If you need it, add a condition inside the <Custom> element to prevent the
action running during uninstallation or repair, unless the action already
handles this.
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 11 May 2010 01:41
To: [email protected]
Subject: Re: [WiX-users] Looking for assistance using WIX to rollbackan 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
[email protected]
office: 1.603.589.5845
-----Original Message-----
From: Blair [mailto:[email protected]]
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: [email protected] [mailto:[email protected]]
Sent: Monday, May 10, 2010 12:16 PM
To: [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial" size="2" "><a href = "http://www.sdl.com"
style="color:005740; font-weight: bold">www.sdl.com</a>
<BR>
<BR>
<font face="arial" size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and we
further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY,
UK.
</font>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users