This is the piece of WXS file: <Binary Id="WixCustomActions" SourceFile="$(var.CustomAction.TargetDir)CustomAction.CA.dll"/>
<CustomAction Id="CustomActionA" Return="check" BinaryKey="WixCustomActions" DllEntry="CustomActionA" /> <CustomAction Id="CustomActionB" Return="check" BinaryKey="WixCustomActions" DllEntry="CustomActionB" /> <InstallExecuteSequence> <Custom Action="CustomActionA" After="CostInitialize">NOT REMOVE</Custom> <Custom Action="CustomActionB" After="CustomActionA">NOT REMOVE</Custom> </InstallExecuteSequence> This is the piece of the DLL file: namespace CustomAction { public class CustomActions { [CustomAction] public static ActionResult CustomActionA(Session session) { session.Log("Begin CustomAction A"); return ActionResult.Success; } public static ActionResult CustomActionB(Session session) { session.Log("Begin CustomAction B"); return ActionResult.Success; } } } When I run the MSI, CustomActionA works fine, but for CustomActionB I have the error. There is a piece of my log file: Action start 9:56:49: CostInitialize. Action ended 9:56:49: CostInitialize. Return value 1. Action start 9:56:49: CustomActionA. SFXCA: Extracting custom action to temporary directory: C:\WINDOWS\Installer\MSI6D71.tmp-\ SFXCA: Binding to CLR version v2.0.50727 Calling custom action CustomAction!CustomAction.CustomActions.CustomActionA Begin CustomAction A Action ended 9:56:50: CustomActionA. Return value 1. Action start 9:56:50: CustomActionB. Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action CustomActionB, entry: CustomActionB, library: C:\WINDOWS\Installer\MSI6D72.tmp MSI (s) (50:14) [09:56:51:954]: Product: expCSCustomAction -- Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action CustomActionB, entry: CustomActionB, library: C:\WINDOWS\Installer\MSI6D72.tmp Action ended 9:56:51: CustomActionB. Return value 3. Action ended 9:56:51: INSTALL. Return value 3. ----- ! -- View this message in context: http://n2.nabble.com/C-two-custom-actions-from-one-DLL-tp3663658p3663658.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users