I'm trying to create and apply a patch.  I can create the patch without
any errors or warnings. When I go to apply it I get the error "Error
2721:  Custom action RemoveCasPol not found in Binary table stream".
How can I fix this?

 

Here is where I declare my custom action:

<Binary Id="ManagedCAs" SourceFile="..\lib\ManagedCAs.CA.dll" />

<CustomAction Id="RemoveCasPol" BinaryKey="ManagedCAs"
DllEntry="RemoveCasPol" Execute="deferred" Return="ignore" />

<CustomAction Id="RemoveCasPol.CustomActionData" Property="RemoveCasPol"
Value="[NET11];[NET20]" />

 

Here is where I schedule my custom action:

<Custom Action="RemoveCasPol.CustomActionData"
Before="RemoveCasPol">Installed And REMOVE=ALL</Custom>

<Custom Action="RemoveCasPol" Before="InstallFinalize">Installed And
REMOVE=ALL</Custom>

 

Here is my OptimizeCustomActions element from my patch:

<OptimizeCustomActions SkipAssignment="yes" SkipDeferred="yes"
SkipImmediate="yes" />

 

My understanding is that the OptimizeCustomActions element should cause
all of the custom actions to be skipped, and the REMOVE=ALL condition
should keep it from being ran during patching anyways.  What am I doing
wrong?

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to