Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builded MSI under CLR C++ error 0x80131019 #1644

Open
L-u1 opened this issue Sep 24, 2024 · 1 comment
Open

Builded MSI under CLR C++ error 0x80131019 #1644

L-u1 opened this issue Sep 24, 2024 · 1 comment

Comments

@L-u1
Copy link

L-u1 commented Sep 24, 2024

Hi there!

I was trying yesterday to build a project using Wix under CLR CPP.
Everything building fine, MSI file is created. But after launch - happens nothing.

https://github.com/L-u1/wix_cLR_cpp

Mostly I played with x86 / x64

In logs I have:

SFXCA: Binding to CLR version v4.0.30319
WixSharp aborted the session because of the error:
System.IO.FileLoadException: Could not load file or assembly 'wix_cLR_cpp', Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)

So it seems everything is works under CLR C++ but I missed something...

Any help/ideas would be appreciated.
Regards,
Lu

@L-u1 L-u1 changed the title Builded MSI under CLR C++ does not contains any files Builded MSI under CLR C++ error 0x80131019 Sep 25, 2024
@oleg-shilo
Copy link
Owner

Hey, I did not know you could even attempt it under C++ CLR. My C++ days are long over.
The error is emitted by the SFXCA, which is a WiX3 utility that takes an assembly and packages it in the native dll so it can be invoked by MSI art runtime as a native CA.

I am guessing the way your C++ project builds the assembly makes it incompatible with this utility.
Sorry for stating the obvious, but maybe it will be easier if you switch to C# even though the rest of your codebase can be in C++...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants