I have a wix install with 2 custom actions.  One is for a EXE and the other is 
for a DLL (see below).  The .EXE custom action is invoked correctly.  However, 
the DLL custom action gets an error 1723 (see install log snippet and source 
code below).
Since others are having success with DLL custom actions I suspect the problem 
is mine.  However, I can't see it.
Any help will be appreciated.
FYI: Using WiX 3.6.1112.0 + vS2010 + .Net Framework 4

****>CUSTOM ACTION FRAGMENT

<Fragment Id="myCustomAction">

<Binary Id='caTestExe' SourceFile= '..\caTestExe\bin\debug\caTestExe.exe'/>

<Binary Id="caTestDLL2" SourceFile = '..\caTestDLL2\bin\debug\CATestDLL2.dll' />

<CustomAction Id='ca.caTestExe'

            BinaryKey='caTestExe'

            ExeCommand='SOME_Value "[PROP_TEST]"'

            Execute='immediate'

            Return='check'/>

<CustomAction Id="ca.caTestDLL2"

            BinaryKey="caTestDLL2"

            DllEntry="TestIt"

            Execute="immediate"

            Return="check" />

</Fragment>

****>INSTALL SEQUENCE

<

InstallExecuteSequence

>

    <

Custom Action="ca.caTestExe" Sequence="1501" /

>

    <

Custom Action="ca.caTestDLL2" Sequence="1502" /

>

</

InstallExecuteSequence

>



****> SOURCE CODE (caTestDLL2)

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Microsoft.Deployment.WindowsInstaller;

namespace caTestDLL2

{

    public class caTestDLL2

    {

        [CustomAction]

        public static ActionResult TestIt(Session session)

        {

            return ActionResult.Success;

        }

    }

}



****> Install log snippet

Doing action: ca.caTestDLL2

Note: 1: 2205 2: 3: ActionText

Action start 7:44:42: ca.caTestDLL2.

Creating MSIHANDLE (1) of type 790542 for thread 2348

Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIC50.tmp, 
Entrypoint: TestIt

Generating random cookie.

Created Custom Action Server with PID 1736 (0x6C8).

Running as a service.

Hello, I'm your 32bit Impersonated custom action server.

Closing MSIHANDLE (1) of type 790542 for thread 2348

Note: 1: 1723 2: ca.caTestDLL2 3: TestIt 4: C:\WINDOWS\Installer\MSIC50.tmp

Note: 1: 2205 2: 3: Error

Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1723

Note: 1: 2205 2: 3: Error

Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709

Product: Bob.CATest -- 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 ca.caTestDLL2, 
entry: TestIt, library: C:\WINDOWS\Installer\MSIC50.tmp





Thanks

Bob
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to