dijain
Posts: 3
Joined: Mon Feb 11, 2013 10:40 am

Error 1001. Exception occurred while initializing the instal

Hello Team,

We are using enterprise edition version 9.9. And getting below error message while installing multi feature enable application -
Error 1001. Exception occurred while initializing the installation: System.ArgumentException: String cannot have zero length..

Repro steps-
1. Create installer with multiple features including WCF service, Win app.
2. provide option to select one or multiple features to install.
3. Add .NET custom action after Add Resource step (for .NET 4.0 app).
4. Running installer with single feature will prompt above error message. But surprisingly, it is working fine while selecting all feature in the list.

Please help us to resolve this issue.

-Thanks

Code: Select all

[RunInstaller(true)]
    public class MyActions : Installer
    {
        public MyActions():base()
        {
            //this.BeforeInstall += new InstallEventHandler(MyActions_BeforeInstall);
            this.AfterInstall += new InstallEventHandler(MyActions_AfterInstall);
        }

        void MyActions_AfterInstall(object sender, InstallEventArgs e)
        {
            //MessageBox.Show("MyActions_AfterInstall");
            System.Diagnostics.Debugger.Launch();
            if (null != e.SavedState)
            {

            }
        }

        //void MyActions_BeforeInstall(object sender, InstallEventArgs e)
        //{
        //}
    }
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 1001. Exception occurred while initializing the in

Hello,

Can you please try to implement the solution described in our Why do I receive the "Error 1001.InstallUtilLib.dll" error? article and let us know if this helped?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dijain
Posts: 3
Joined: Mon Feb 11, 2013 10:40 am

Re: Error 1001. Exception occurred while initializing the in

I did all requested changes given in link. Still i am facing same issue..

Please help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 1001. Exception occurred while initializing the in

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gvasko
Posts: 33
Joined: Mon Jun 07, 2010 7:11 pm

Re: Error 1001. Exception occurred while initializing the in

Hello,

We have faced with the same issue.
It seems to me that custom actions from a merge module cannot be bound to a feature in the msi.

We have solved this problem using conditions on the custom actions in the merge module:
Page "Custom Actions", section Execution Stage Condition
Condition: ($CustomActionInstaller.dll = 3)
which can be added using the ... button double clicking on the predefined condition "Component is being installed locally" then selecting the .NET custom action dll.

This is similar on uninstall:
Condition: (($CustomActionInstaller.dll = 2) AND (?CustomActionInstaller.dll = 3))
which is the "Component is being uninstalled" predefined condition.

Hope this helps.

Dear support, please verify.

Thank you,
Gabor Vasko

Return to “Common Problems”