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
- :
- Using Powershell to manage builds
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Oct 18, 2013
01:47 PM
Using Powershell to manage builds
I am attempting to create a build script using PowerShell that I can integrate into CruiseControl.NET
I can open and close a project successfully however, I cannot do the following:
[LIST=1]
Access ISWiProductConfigs or ISWiReleases. I actually have to clarify, I am not correctly accessing the content of these items.
[LIST=a]
I have successfully retrieved $m_ISWiProj.ISWiProductConfigs.Count
Attempting to execute: $m_ISWiProj.ISWiProductConfigs("$projParams").ISWiReleases("$projParams") returns an error. The parameters are a valid configuration and release name.
An attempt to just retrieve the list of configurations failed to return anything.
I am sure this is possible. I prefer PowerShell because it is natively supported by CruiseControl.NET
I have seen Cory's blog: http://blogs.flexerasoftware.com/installtalk/2011/01/getting-started-with-installshield-automation-and-powershell.html
This was very helpful in getting started. But I am not certain why I am not getting information on the Configuration or Releases.
Any ideas?
Dan
I can open and close a project successfully however, I cannot do the following:
[LIST=1]
[LIST=a]
I am sure this is possible. I prefer PowerShell because it is natively supported by CruiseControl.NET
I have seen Cory's blog: http://blogs.flexerasoftware.com/installtalk/2011/01/getting-started-with-installshield-automation-and-powershell.html
This was very helpful in getting started. But I am not certain why I am not getting information on the Configuration or Releases.
Any ideas?
Dan
(1) Reply
Oct 19, 2013
09:40 PM
How's your C# programming?
Personally I'd create a reusable library using C# to wrap the COM calls. You could then consume that from a console EXE, an MSBuild task or a PowerShell static method invocation. See:
http://blog.iswix.com/2010/12/thoughts-on-using-c-in-build-automation.html
PS- I know CruiseControl.NET has good MSBuild support. That's the direction I'd go....
Personally I'd create a reusable library using C# to wrap the COM calls. You could then consume that from a console EXE, an MSBuild task or a PowerShell static method invocation. See:
http://blog.iswix.com/2010/12/thoughts-on-using-c-in-build-automation.html
PS- I know CruiseControl.NET has good MSBuild support. That's the direction I'd go....