This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ISWIAuto16 Console Output?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2011
01:20 PM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2011
12:38 PM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 26, 2011
01:23 PM
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]
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]