I'm trying to create an immediate custom action that would allow user
to "test connection" to a wcf server.

<Binary Id="CaDll" SourceFile="MyCustomActions.CA.dll" />
<CustomAction Id="TestConnection" BinaryKey="CaDll"
DllEntry="TestConnection" Return="check" Execute="immediate"/>

       <Control Id="TestConnection" Type="PushButton" Height="17"
Width="100" X="25" Y="200" Text="Test connection">
         <Publish Event="DoAction" Value="TestConnection"/>
       </Control>


If I comment out the wcf bits, the custom action runs fine, but if I
include it then I end up with

MSI (c) (C8:B4) [15:55:06:487]: Invoking remote custom action. DLL:
C:\DOCUME~1\sda\LOCALS~1\Temp\MSIB39.tmp, Entrypoint: TestConnection
MSI (c) (C8:18) [15:55:06:487]: Cloaking enabled.
MSI (c) (C8:18) [15:55:06:487]: Attempting to enable all disabled
privileges before calling Install on Server
MSI (c) (C8:18) [15:55:06:487]: Connected to service for CA interface.
Action ended 15:55:07: TestConnection. Return value 3.
MSI (c) (C8:48) [15:55:07:456]: Note: 1: 2205 2:  3: Error
MSI (c) (C8:48) [15:55:07:456]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 2896
DEBUG: Error 2896:  Executing action TestConnection failed.
The installer has encountered an unexpected error installing this
package. This may indicate a problem with this package. The error code
is 2896. The arguments are: TestConnection, ,

I've set up the CustomAction.config like follows:

<configuration>
   <startup useLegacyV2RuntimeActivationPolicy="true">
       <supportedRuntime version="v2.0.50727"/>
   </startup>
</configuration>

and the custom action project is set to have .net 3.5 as target framework

I'm using wix 3.6.1029.0


What am I missing?

regards,
Simon

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to