I have created a .Net Installer Custom Action on the Commit phase of the InstallExecuteSequence. I selected the file to run the custom action from and set the Execute Options to "Commit with no impersonation". Nothing else was changed but I keep getting the following error:
If I remove the custom action then everything works fine. When I look in the install log I see this:The dialog ErrorDlg has the error style bit set, but is not an error dialog.
My installer class looks like this:MSI (s) (48:68) [10:26:57:354]: Invoking remote custom action. DLL: C:\Windows\Installer\MSICFB6.tmp, Entrypoint: LaunchDotNetCustomAction
MSI (c) (EC:74) [10:26:58:057]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog.
MSI (c) (EC:74) [10:38:08:885]: Product: EPWeb -- Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog.
Error 1001.
MSI (s) (48!28) [10:38:08:885]:
MSI (s) (48:68) [10:38:08:885]: Leaked MSIHANDLE (143) of type 790531 for thread 1064
MSI (s) (48:68) [10:38:08:900]: Note: 1: 2769 2: dotNetCustAct.dll 3: 1
Info 2769. Custom Action dotNetCustAct.dll did not close 1 MSIHANDLEs.
CustomAction dotNetCustAct.dll returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Code: Select all
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
namespace EventPro.Web {
[RunInstaller(true)]
public partial class ProjectInstaller : System.Configuration.Install.Installer {
public ProjectInstaller() {
InitializeComponent();
}
public override void Commit(IDictionary savedState) {
base.Commit(savedState);
if (!System.Diagnostics.EventLog.SourceExists("EventPro.Web")) {
System.Diagnostics.EventLog.CreateEventSource("EventPro.Web", "Application");
}
}
}
}
FOLLOW US
Get the latest news in Application Packaging