cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MalQuiJelKah
Level 3

ISWIAuto16 Console Output?

Is there a way to get the InstallShield Build ouput to postback into my C# automation program.

I would like for my automation application to show me the InstallShiled Build console output.
i.e.
AdminExecuteSequence table successfully built
AdminUISequence table successfully built
AdvtExecuteSequence table successfully built

If I can do this, that would be awesome, if not I can live with my current alternative.

Any help would be greatly appreciated, please and thank you
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Searching these forums for "StatusMessage" should show threads (such as [thread=178970]this one[/thread]) that describe how you can access InstallShield build status messages.
0 Kudos
MalQuiJelKah
Level 3

RobertDickau Thanks for the direction

I got it to work via the C# example below

[CODE]
namespace test
{
Class InstallShieldAutomation
{
Static void Main(string[] args)
{
// Find Product Configuration
int configIndex = 0;
int countCon = m_ISWiProj.ISWiProductConfigs.Count;
for (int i = 1; i <= countCon; i++)
{
if (m_ISWiProj.ISWiProductConfigs.Name == "mystring")
{
configIndex = i;
}
}

// Find Release
int releaseIndex = 0;
int countRel = m_ISWiProj.ISWiProductConfigs.Count;
for (int i = 1; i <= countRel; i++)
{
if (m_ISWiProj.ISWiProductConfigs[configIndex].ISWiReleases.Name == "mystring")
{
releaseIndex = i;
}
}
m_ISWiProj.ISWiProductConfigs[configIndex].ISWiReleases[releaseIndex].StatusMessage += new ISWiAuto16.__ISWiRelease_StatusMessageEventHandler(Program_StatusMessage);

m_ISWiProj.ISWiProductConfigs[configIndex].ISWiReleases[releaseIndex].Build();
}

static void Program_StatusMessage(string sMessage, ref bool pbCancel)
{
Console.WriteLine(sMessage);
}
}
}
[/CODE]
0 Kudos