Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7985135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:28:46+00:00 2026-06-04T11:28:46+00:00

I have a project with 2 different .cpp`s. MyProj consists of MyCPP1 and MyCPP2

  • 0

I have a project with 2 different .cpp`s.
MyProj consists of MyCPP1 and MyCPP2
MyCPP1 contains different functions to be executed from msi using wix.

extern "C" __declspec(dllexport) UINT __stdcall MyCAFunction(MSIHANDLE hInstall)
{
    TCHAR name[MAX_PATH] = {0};
    DWORD nameLen = MAX_PATH;
    TCHAR keydir[MAX_PATH] = {0};
    DWORD keydirLen = MAX_PATH;

    MsiGetProperty (hInstall, L"Val1", name, &nameLen);
    MsiGetProperty (hInstall, L"Val2", keydir, &keydirLen);
}

and the wix code is:

<CustomAction Id="MyCA.Props" Return="check" Property="MyCA" value="Val1=[LogonUser];Val2=[INSTALLDIR]"/>
<CustomAction Id="MyCA" Return="check" Execute="deferred" BinaryKey="Binary1" DllEntry="_MyCAFunction@4" HideTarget="no" />
<Binary Id="Binary1" SourceFile="$(var.ConfDir)MyProj.dll" />

Well… so i have an error:

Error 1723: A DLL required for this install to complete could not be run.

What way i need to dig?

I have some thoughts in the way of CA types… such as the basic type of CA with FileKey reference is 17. but my CA type is 1041 (Orca helps). Could it be the issue of my problem?

I’ve checked the version with diferent types of CA. its just coz of the parameters of CA (just deleting Execute=”deferred” change type from 1041 to 17 (standart type). THe last thing of solving this ussue is the dll. I’ll see it today… any sujestions?

Tried different ways of building dll’s. Works just the dll, built by the example project of C++ Wix Custom Action Project. I compared 3 or 4 different projects. By props, by links, by external dependancies… Cannot find the issue… Help me…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:28:47+00:00Added an answer on June 4, 2026 at 11:28 am

    Check the names of the functions exported from your DLL.

    To do it, run dumpbin utility on your DLL with /exports flag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that has components in several different directories and would like
I have a project that is supposed to run on different (at least 2)
I have a project which exposes object model to use by different types of
I have a project which is going to be share with different clients. The
I have a project with several CSS files, each with many different settings. Every
I have an Android project that branched into three different applications, app-1 , app-2
my project uses 2 different C++ compilers, g++ and nvcc (cuda compiler). I have
I have three different configurations on my project, all three do not require all
I have a scene in my WPF project with about 2000 different user controls:
I have a clojure/ring project that has two distinct app/handlers running on different ports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.