I am new to WIX, so bear with me please.
I have two custom actions in my installation procedure, one that gets called during the installation of the .msi and one that gets called during the uninstallation of the .msi.
<Binary Id="ClassExtension.RegisterAssemblies.CA.dll" src="..\ClassExtension.RegisterAssemblies\bin\$(var.Configuration)\ClassExtension.RegisterAssemblies.CA.dll" />
<CustomAction Id="CustomActionInstall"
Return="check"
Execute="immediate"
BinaryKey="ClassExtension.RegisterAssemblies.CA.dll"
DllEntry="OnInstall" />
<CustomAction Id="CustomActionUninstall"
Return="check"
Execute="immediate"
BinaryKey="ClassExtension.RegisterAssemblies.CA.dll"
DllEntry="OnUninstall" />
<InstallExecuteSequence>
<Custom Action="CustomActionInstall" After="InstallFinalize" />
<Custom Action='CustomActionUninstall' After="InstallInitialize">REMOVE="ALL"</Custom>
</InstallExecuteSequence>
The custom action methods look as follow:
[CustomAction]
public static ActionResult OnInstall(Session session)
{
//Code
}
[CustomAction]
public static ActionResult OnUninstall(Session session)
{
//Code
}
The custom actions reside in a seperate C# Custom Action class, the custom action that gets called on installation works fine. When I attempt to uninstall the application I get the following error:
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.
So it looks to me that some DLL is being called before it is intitialized, and that the mistake is probably somewhere in the Execute Sequence.
Any help will be appreciated.
Regards