[wix-users] Fwd: CustomAction

Gustavo Ojeda gustavo.ojeda at tallertechnologies.com
Fri Feb 24 12:29:24 PST 2017


Hi,

Thanks for your reply. Actually I am following your advice, my updated .wxs
looks like:

*...*
*<Binary Id="MyLib" SourceFile="$(var.InstallerPath)\myLib.CA.dll" />*
*<CustomAction Id="CancelUninstall"      Execute="immediate"    BinaryKey="*
*MyLib**" DllEntry="NotifyCancel" Return="ignore"/>*
*...*



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

I am not sure if I forgot something, but I am still having the Error code
0x80131700.


Best Regards,


On Fri, Feb 24, 2017 at 5:15 PM, Phill Hogland <phill.hogland at rimage.com>
wrote:

> If your are using a DTF managed CA, then your CustomAction/@BinaryKey
> should specify the modified wrapper name "myDll.CA.dll" rather than
> "myDll.dll".  Generate your C# library with the output name "myDll.dll" and
> then DTF generates a wrapper "myDll.CA.dll" which is what you MSI imports
> into the Binary Table and is indicated in the CustomAction/@BinaryKey.
>
>
> ________________________________
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of
> Gustavo Ojeda <gustavo.ojeda at tallertechnologies.com>
> Sent: Friday, February 24, 2017 1:09:30 PM
> To: WiX Toolset Users Mailing List
> Subject: Re: [wix-users] Fwd: CustomAction
>
> BTW: I have this configuration for my custom action
>
> <configuration>
>     <startup useLegacyV2RuntimeActivationPolicy="true">
>         <supportedRuntime version="v4.0" />
>         <supportedRuntime version="v2.0"/>
>     </startup>
> </configuration>
>
> On Fri, Feb 24, 2017 at 3:58 PM, Gustavo Ojeda <
> gustavo.ojeda at tallertechnologies.com> wrote:
>
> > Thanks,
> >
> > That works!
> >
> > However now I am having an issue when the custom action is going to be
> > executed. I get the following
> > error:
> >
> > *SFXCA: Failed to get requested CLR info. Error code 0x80131700*
> >
> > I am still doing some research, but in case someone already handle this
> > issue please let me know.
> >
> > Thanks,
> >
> >
> >
> > On Fri, Feb 24, 2017 at 1:12 PM, Lewis Henderson <henderso at opentext.com>
> > wrote:
> >
> >> 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-XDAyDsu4
> >> A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=_m3oiSQoRn
> >> Vn6OQj81DXaN6YJngR6LbZqY5_BrRQozo&s=l1K_XasUexwORLWot4uU
> >> uPUOcycVYKXQTcqrl2fM66c&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.fire
> >> giant.com_&d=DwIGaQ&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZ
> >> kvswZOswwnYxaueKkO53V282tTn1P4&m=_m3oiSQoRnVn6OQj81DXaN6YJng
> >> R6LbZqY5_BrRQozo&s=Ib-GYe7QwyVXEqQHJ2nvPkkAwPERRgtPjyYni5fbqbY&e=
> >>
> >> ____________________________________________________________________
> >> WiX Toolset Users Mailing List provided by FireGiant
> >> http://www.firegiant.com/
> >
> >
> >
> >
> > --
> > <http://www.tallertechnologies.com>
> > Gustavo Ojeda
> > Software Engineer
> >
> > San Lorenzo 47, 3rd Floor, Office 5
> >
> > Córdoba, Argentina
> >
> > Phone: +54 351 4217888 / +54 351 4218211
> > Skype: gvo.ojeda
> >
>
>
>
> --
> <http://www.tallertechnologies.com>
> 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
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



-- 
<http://www.tallertechnologies.com>
Gustavo Ojeda
Software Engineer

San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina

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


More information about the wix-users mailing list