[wix-users] Error starting custom action

Christopher Painter chrpai at iswix.com
Tue Sep 4 08:25:32 PDT 2018


Can you show your wxs  code that consumes said dll?


This is my list of usual suspects:  (Your provided code rules out #'s  4-9 but not 1-3 or 10.)


https://stackoverflow.com/questions/3560370/custom-action-in-c-sharp-used-via-wix-fails-with-error-1154/3566822#3566822

[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded]<https://stackoverflow.com/questions/3560370/custom-action-in-c-sharp-used-via-wix-fails-with-error-1154/3566822#3566822>

Custom Action in C# used via WiX fails with error 1154 ...<https://stackoverflow.com/questions/3560370/custom-action-in-c-sharp-used-via-wix-fails-with-error-1154/3566822#3566822>
stackoverflow.com
I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action template, at least for now. ...






________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Kirti Bauer via wix-users <wix-users at lists.wixtoolset.org>
Sent: Tuesday, September 4, 2018 4:08 AM
To: wix-users at lists.wixtoolset.org
Cc: Kirti Bauer
Subject: [wix-users] Error starting custom action

I had an installation created by using WIX 3.11 in Visual Studio 2017. Until now I have had no major issues with the installation and the custom actions library.
My current installation site is a Windows 2016 Server running .NET Framework v4.0.30319.

My MSI works until the first access to a custom action.

I created a simple custom action function that presents the user with a dialog box and returns the success result.
[CustomAction]
public static ActionResult Test(Session session)
{
session.Log("Test started");
MessageBox.Show("Test");
session.Log("Test ended");
return ActionResult.Success;
}

Using verbose logging I get the following error:

MSI (c) (50:B4) [16:33:41:039]: Doing action: Test
Action 16:33:41: Test.
Action start 16:33:41: Test.
MSI (c) (50:38) [16:33:41:039]: Invoking remote custom action. DLL: C:\Users\SVC_AB~1\AppData\Local\Temp\2\MSI1E2A.tmp, Entrypoint: Test
MSI (c) (50:E4) [16:33:41:055]: Cloaking enabled.
MSI (c) (50:E4) [16:33:41:055]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (50:E4) [16:33:41:055]: Connected to service for CA interface.
SFXCA: RUNDLL32 returned error code: -1
CustomAction Test returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 16:33:44: Test. Return value 3.
MSI (c) (50:B4) [16:33:44:717]: Doing action: FatalError
Action 16:33:44: FatalError.
Action start 16:33:44: FatalError.
Action 16:33:44: FatalError. Dialog created
MSI (c) (50:64) [16:33:44:748]: Note: 1: 2731 2: 0
Action ended 16:33:46: FatalError. Return value 2.
Action ended 16:33:46: INSTALL. Return value 3.

What does the error code -1 mean from the rundll32?
I have searched for this error but have found no results.

Any help would be appreciated.

BR
kibau














____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
www.firegiant.com
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant





More information about the wix-users mailing list