I created a
In your docs it says:
public static
class to keep all my EventLogInstaller
actions separate from setup.cs
. Then I tried referencing it, using both of these methods. new ElevatedManagedAction("InitializeServerEventLog", Return.check, When.Before, Step.InstallFinalize, installServer),
new ElevatedManagedAction("EventLogInstaller.InitializeClientEventLog", Return.check, When.Before, Step.InstallFinalize, installClient),
Wix built an msi happily, however they would both cause an exception during installation like:There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action Action4_EventLogInstaller.InitializeClientEventLog, entry: EventLogInstaller.InitializeClientEventLog, library: C:\WINDOWS\Installer\MSI7D09.tmp
If I move the methods to the Setup.cs:Script.Main
method it works fine.In your docs it says:
Managed CustomAction can be defined either in the Wix# script or in the external assembly or C# file. The only requirements for any C# method to be qualified for being Managed CustomAcyion is to have DTF Action signature public static ActionResult MyManagedAction(Session session), and be marked with [CustomAction] attribute. ` which I believe have done.What am I doing wrong?