Stefano Tommesani

  • Increase font size
  • Default font size
  • Decrease font size
Home Programming Building Installshield LE 2012 setups from the command line for CI

Building Installshield LE 2012 setups from the command line for CI

Hits

In Visual Studio 2012, after installing Installshield LE 2012, you can include setup projects into your solution, as shown below:

AutoSetupSolution

Adding the Setup project to the solution, and including it into the Release configuration, makes for a quick, 1-click compilation procedure of both the main app and the installer. Still, what if we want to use a Continuous Integration software (e.g. Jenkins and countless others) and run the compilation of the setup from an external app? The ISL file extension used by InstallShield LE does not seem to be directly supported by CI softwares, and using ISCmdBld.exe as specified in Flexera's docs is not feasible, as that part of Installshield is missing from the LE edition (the L stands for Limited, so no surprises here). However, this specific project type can be compiled within VS IDE, so we can use MSBuild to compile it from the command line.

 

Let's start by defining a configuration for the solution that includes only the Setup project, using the SingleImage configuration:

 

AutoSetupConfigurationManager

When building the solution using this configuration, only the Setup project will be compiled.

Then let's open a command shell that supports the VS build environment (you can find in the Visual Studio Tools folder in the Start menu), and from the directory that contains the solution let's type the following command:

msbuild <name of solution.sln> /t:Rebuild /p:Configuration=SingleImage

AutoSetupCommandLine

In the ValidateProjects phase, MSBuild will report that all the other projects included into the solution are not enabled in the given configuration (SingleImage), then it will start compiling the InstallShield project. At the end of the process, after some warning messages highlighted in yellow that for now we are not considering, the output folder will contain the freshly built Setup file:

AutoSetupFinalFile

Quote this article on your site

To create link towards this article on your website,
copy and paste the text below in your page.




Preview :


Powered by QuoteThis © 2008
Last Updated on Thursday, 31 October 2013 12:45  

Latest Articles

A software to stand out 27 January 2018, 14.35 Web
A software to stand out
Standing out of the pack starts by being visible, and being noticed by the right group of professionals. No matter how good your profile is, it is lost in a sea of similar profiles, so you need to show up and start attracting
Web page scraping, the easy way 07 January 2018, 00.46 Web
Web page scraping, the easy way
There are many ways to extract data elements from web pages, almost all of them prettier and cooler than the method proposed here, but as we are in an hurry, let's get that data quickly, ok? Suppose we have to extract the
Scraping dynamic page content 06 January 2018, 23.57 Web
Scraping dynamic page content
One of the most common roadblocks when scraping the content of web sites is getting the full contents of the page, including JS-generated data elements (probably, the ones you are looking for). So, when using CEFSharp to scrape
Unit-testing file I/O 26 November 2017, 12.09 Testing
Unit-testing file I/O
Two good news: file I/O is unit-testable, and it is surprisingly easy to do. Let's see how it works! A software no-one asked for First, we need a piece of software that deals with files and that has to be unit-tested. The
Fixing Git pull errors in SourceTree 10 April 2017, 01.44 Software
Fixing Git pull errors in SourceTree
If you encounter the following error when pulling a repository in SourceTree: VirtualAlloc pointer is null, Win32 error 487 it is due to to the Cygwin system failing to allocate a 5 MB large chunk of memory for its heap at
View Stefano Tommesani's profile on LinkedIn