Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It sounds like you are using DTF. If you see:</p> <pre><code>using Microsoft.Deployment.WindowsInstaller; </code></pre> <p>then you certainly are. Be sure to read the following for how it all works:</p> <p><a href="http://blog.deploymentengineering.com/2008/05/deployment-tools-foundation-dtf-custom.html" rel="noreferrer">Deployment Tools Foundation (DTF) Managed Custom Actions</a></p> <p>Also you'll find a DTF help chm in the start menu under WiX.</p> <p>Basically it sounds like to me you are wiring the .NET assembly into the installer instead of the unmanged wrapper dll. Read the above article for an overview of how to look at it in Depends and to know what to expect. The WiX | C# Custom Action project should output Foo.dll and Foo.CA.dll. You want the later in your installer.</p> <p>For people who land on this page in the future (the answer was originally for the poster ) there is a whole list of things to check:</p> <ol> <li>Are you referencing the correct DLL in the Binary table?</li> <li>Are you referencing the correct exported function name?</li> <li>Is your class public?</li> <li>Is your method using the correct signature? I.e. is it:</li> <li>Marked with the correct CustomAction attribute</li> <li>Marked as public?</li> <li>Marked as static?</li> <li>Return ActionResult?</li> <li>Take Session as an Argument?</li> <li>Make sure you are using the WiX C# Custom Action Project type to ensure the postbuild event is called to create the native DLL wrapper. (See #1)</li> </ol> <p>Any one of these can cause an 1154 error. This is the reason I wrote a comprehensive blog article on the subject and linked to it in this answer. It's important to fully understand how managed code is presented to the unmanaged Windows Installer service and to know how to use Depends to validate that the public static method is exported as a stdcall function in the resulting .CA.dll that WiX/DTF produces.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload