There are lot of threads and question out there. But the error I am facing is in quite different scenario. So let me explain here. With the help of this article Installer Class and Custom Actions
I have added project primary output(Having Installer Class) as custom action inside Commit. with the custom action condition : NOT REMOVE. But when I try to run the MSI, It gives me an error in a popup, Error 1001. Error 1001. InstallUtilLib.dll: Unknown error.
Below is my code and logs of the installer :
Project Build's Target platform is ANY CPU and installer's is x86 bit.
InstallHelper.cs
[RunInstaller(true)]
public partial class InstallHelper : System.Configuration.Install.Installer
{
public InstallHelper()
{
InitializeComponent();
}
public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);
}
public override void Commit(IDictionary savedState)
{
base.Commit(savedState);
//configrureAppAfterInstallation();
}
}
Primary output of the project is inlcuded as custom action under Commit action with following parameters :
CustomActionData : /targetDir="[TARGETDIR]\", /srcDir="[SOURCEDIR]\"
Conditions : NOT REMOVE
And the logs snapshot in eventviewer :
The description for Event ID 11001 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Product: MyApp -- Error 1001. Error 1001. InstallUtilLib.dll: Unknown error.
(NULL)
(NULL)
(NULL)
(NULL)
(NULL)
the message resource is present but the message is not found in the string/message table
And the logs generated in %TEMP% folder :
Error 1001. Error 1001. InstallUtilLib.dll: Unknown error.
=== Logging stopped: 11/16/2017 19:43:53 ===
No Matter What i change be it custom action condition, or adding the custom action under install or commit or both. I got same error and the same logs. Sometimes It work with the same configuration, but then custom action doesnot get called. To avoid the error I had to remove custom action. But that's not the requirement. I am not able to understand, what this error means?
I tried to create a fresh similar project from scratch and add custom action. it worked. But not with the current project. What would be the possible cause?
I would appreciate any help. I am really got stuck at this. Thanks in advance.
========EDIT=========
we are using add-in express (v8.2.4371) framework to develop office-addin. It automatically adds adxRegistrator.exe as customAction (for Install, Rollback and Uninstall Mode) to perform some action such as registering the add-in etc.
The system is 64 bit type. Project is targeted at 4.0 .net framework version.
And I am adding my own customAction for Install, commit custom action mode. Is it possible to add two custom action? If it is what are the things I should/must care of? e.g. like conditions or entry point parameters of them.