[wix-users] Fwd: CustomAction

Lewis Henderson henderso at opentext.com
Fri Feb 24 08:12:29 PST 2017


Hi Gustavo,

When doing CustomActions, I usually use the BinaryKey attribute instead of FileKey, and have myDll.dll defined in a <Binary ... /> element.  That causes myDll.dll to  be an installer temporary file, and doesn't depend on the CostFinalize action.  I hope this helps.

				Lewis Henderson
				OpenText Corp.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Gustavo Ojeda
Sent: Friday, February 24, 2017 10:58 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Fwd: CustomAction

Hi,

My name is Gustavo, and I am trying to handle the default cancel button on my MSI Installer (I did not define my own UI) In order to do that I define a custom action like:

*<CustomAction Id="CancelUninstall"      Execute="immediate"
 FileKey="myDll.dll" DllEntry="NotifyCancel"/>*
*<CustomAction Id="OtherAction"      Execute="immediate"
 FileKey="myDll.dll" DllEntry="OtherAction"/>*


And in the install sequence is registered like:

<*InstallExecuteSequence*>
            <*Custom Action*="*CancelUninstall*" *OnExit*="*cancel*" />
            <*Custom Action*="*OtherAction*"      *After*="*InstallFinalize*"
/>
</*InstallExecuteSequence*>

But I am having the following error:

*ICE75: CancelUninstall is a custom action whose source is an installed file.  It must be sequenced after the CostFinalize action in the InstallExecuteSequence Sequence table*

What am I missing here? How can I handle this a behaviour like this?

Best Regards,


--
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tallertechnologies.com&d=DwIGaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=_m3oiSQoRnVn6OQj81DXaN6YJngR6LbZqY5_BrRQozo&s=l1K_XasUexwORLWot4uUuPUOcycVYKXQTcqrl2fM66c&e= > Gustavo Ojeda Software Engineer

San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina

Phone: +54 351 4217888 / +54 351 4218211
Skype: gvo.ojeda

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DwIGaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=_m3oiSQoRnVn6OQj81DXaN6YJngR6LbZqY5_BrRQozo&s=Ib-GYe7QwyVXEqQHJ2nvPkkAwPERRgtPjyYni5fbqbY&e= 


More information about the wix-users mailing list