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)
//{
//}
}
FOLLOW US
Get the latest news in Application Packaging