firegiant / HeatWaveSupport

Issues-only repository to report HeatWave bugs and feature requests to FireGiant
3 stars 0 forks source link

Support for NativeAOT Custom Actions #3

Open chrpai opened 1 year ago

chrpai commented 1 year ago

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;
}

}

FireGiantHelp commented 1 year ago

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

BryanCrotaz commented 9 months ago

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