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

Custom Actions Fail on Windows 11 Professional with WixSharp 1.25.2 #1684

Closed
coderafk opened this issue Dec 5, 2024 · 2 comments
Closed

Comments

@coderafk
Copy link

coderafk commented Dec 5, 2024

Hello Oleg,

We need you help again.

We are experiencing an issue where all Custom Actions fail during installation on some of our customers' machines running Windows 11 Professional with the latest updates. The same behavior could not be replicated on our internal test machines. Logs from affected systems are provided below for reference.

Do you have any idea what the problem could be?

Frank

Logs:

Action start 9:29:50: InstallFinalize.
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSI8C94.tmp-\
SFXCA: Binding to CLR version v4.0.30319
Calling custom action My_setup!company.Program.Setup.CustomActions.FileExtensionsCustomActions.FileExtensionsAdd
FileExtensionsAdd: Logging Configured
FileExtensionsAdd: Start
FileExtensionsAdd: C:\Program Files\MyProgram\SetupHelper.exe
FileExtensionsAdd: arguments: /FileExtensions=Add
FileExtensionsAdd: ActionResult: Success
FileExtensionsAdd: End
SFXCA: RUNDLL32 returned error code: -1073741819
@oleg-shilo
Copy link
Owner

Sorry Frank, it took some time to get to the tickets backlog.

There are two possible causes:

  • the custom action is not compatible with the .NET version on the target system.
    try to execute your routine (it is an exe assembly after all) on the target system to see if it loads. This way you will be mimicking what RUNDLL32 does when it executes SFXCA*.dll
  • runtime exception
    try to have a nice try-catch with logging; or try to debug.

@jeromydean
Copy link

Is it possible you are using a version of WiX that's affected by wixtoolset/issues#8078

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

No branches or pull requests

3 participants