Nevermind, got it working. On Thu, Nov 18, 2010 at 4:06 PM, Simon Dahlbacka <[email protected]> wrote: > 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 >
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

