Barbara
01-05-2006, 07:51 AM
I am using a build tool written in C# to build my InstallShield Projects. Among other things, the IS project is opend and the ProductName ist written to the release.
This is the code which works with the IS X automation interface, using it with IS 11.5 throws me an exception:
ISWiAuto1150.ISWiProject ISWiProject;
ISWiProject = new ISWiAuto1150.ISWiProject();
strConfigsProductName = strProductName + " Setup-Build " + strHotfix;
try
{
ISWiProject.ISWiProductConfigs[strConfigName].set_ProductName(ref strConfigsProductName);
}
catch (Exception ex)
{
MessageBox.Show("Error writing to ISM Project " + ex.Message.ToString(), strMessageBoxCaption);
}
The exception thrown is:
Item Not Found, ISWiAutomation.ISWiProductConfigs.Item
Whats wrong with the code ? Was it a bug in IS X that it was working or is it a bug in IS 11.5 that it is not working ?
Thank you
Barbara
This is the code which works with the IS X automation interface, using it with IS 11.5 throws me an exception:
ISWiAuto1150.ISWiProject ISWiProject;
ISWiProject = new ISWiAuto1150.ISWiProject();
strConfigsProductName = strProductName + " Setup-Build " + strHotfix;
try
{
ISWiProject.ISWiProductConfigs[strConfigName].set_ProductName(ref strConfigsProductName);
}
catch (Exception ex)
{
MessageBox.Show("Error writing to ISM Project " + ex.Message.ToString(), strMessageBoxCaption);
}
The exception thrown is:
Item Not Found, ISWiAutomation.ISWiProductConfigs.Item
Whats wrong with the code ? Was it a bug in IS X that it was working or is it a bug in IS 11.5 that it is not working ?
Thank you
Barbara