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

Support for NativeAOT Custom Actions #3

Open
chrpai opened this issue Nov 15, 2022 · 3 comments
Open

Support for NativeAOT Custom Actions #3

chrpai opened this issue Nov 15, 2022 · 3 comments
Labels
feature Feature idea

Comments

@chrpai
Copy link

chrpai commented Nov 15, 2022

HeatWave Version

0.9.0.5

What's your idea?

Recently Edwin Young posted on wix-users the below snippet. This seems like an easy put and great idea for a custom action project type as alternative option for DTF.

https://github.com/edyoung/net7ca

using System.Runtime.InteropServices;
using WixToolset.Dtf.WindowsInstaller;

namespace CustomAction;
public class Class1
{
[UnmanagedCallersOnly(EntryPoint = "CustomAction2")]
public static uint CustomAction2(IntPtr handle)
{
using Session session = Session.FromHandle(handle, false);

    session.Log("Custom Action 2 Called");
    return 0;
}

}

@chrpai chrpai added the triage To be reviewed by FireGiant label Nov 15, 2022
@FireGiantHelp FireGiantHelp added feature Feature idea and removed triage To be reviewed by FireGiant labels Nov 23, 2022
@FireGiantHelp
Copy link
Collaborator

This is an interesting scenario and have a backlog item to investigate.

@BryanCrotaz
Copy link

Does it work? Is it safe to try to use this?

@mark-monteiro
Copy link

Does it work? Is it safe to try to use this?

It looks like the proof of concept does not work: edyoung/net7ca#1 (comment)

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

No branches or pull requests

4 participants