Navigation:  Actions > Installers > InstallShield >

InstallShield Action Project Tab

Previous pageReturn to chapter overviewNext page

This tab of the InstallShield action specifies information about the project being compiled.

 

Filename: The filename of the project to compile (required).

 

InstallShield compiler to call: Identifies which InstallShield product is being used (determines the default compiler executable location and filename and base command-line flags).  Select the All v2008-2018, DevStudio v9-12, Express v12+ option for all Professional, Premier, and DevStudio versions 9 or later and all Express versions 12 or later.

 

Note: InstallShield Professional versions prior to 7.0 are not supported by this action (InstallShield Pro uses a two-step build process [Compile.exe, then IsBuild.exe] but the executables are stored in different locations in version 6.x).  For earlier versions, generate the batch file within InstallShield (from the Build menu) and run it from a Run Program action with a command of %DOSCMD% call "<path>\Build.bat".

 

Options that apply only to Professional, Premier, Developer, and DevStudio:

 

Configurations: Specifies the configurations for the release (optional, one per line).

 

 

Setting the Product Version

 

The following VBScript code can be used in the InstallShield step's vbld_StepStarted script event to set or increment the product version in an InstallShield Developer, DevStudio, X, or later project:

 

' create the InstallShield Developer automation object

Set objInst = CreateObject("ISWiAuto29.ISWiProject")        ' for InstallShield 2023, including standalone (with Automation Interface installed)

' use "ISWiAuto28.ISWiProject" for InstallShield 2022, including standalone (with Automation Interface installed)

' use "ISWiAuto27.ISWiProject" for InstallShield 2021, including standalone (with Automation Interface installed)

' use "ISWiAuto26.ISWiProject" for InstallShield 2020, including standalone (with Automation Interface installed)

' use "ISWiAuto25.ISWiProject" for InstallShield 2019, including standalone (with Automation Interface installed)

' use "ISWiAuto24.ISWiProject" for InstallShield 2018, including standalone (with Automation Interface installed)

' use "ISWiAuto23.ISWiProject" for InstallShield 2016, including standalone (with Automation Interface installed)

' use "ISWiAuto22.ISWiProject" for InstallShield 2015, including standalone (with Automation Interface installed)

' use "ISWiAuto21.ISWiProject" for InstallShield 2014, including standalone (with Automation Interface installed)

' use "ISWiAuto20.ISWiProject" for InstallShield 2013, including standalone (with Automation Interface installed)

' use "ISWiAuto19.ISWiProject" for InstallShield 2012 Spring Edition, including standalone (with Automation Interface installed)

' use "ISWiAuto18.ISWiProject" for InstallShield 2012

' use "ISWiAuto17.ISWiProject" for InstallShield 2011

' use "ISWiAuto16.ISWiProject" for InstallShield 2010

' use "ISWiAuto15.ISWiProject" for InstallShield 2009 (use SAAuto15.ISWiProject for standalone)

' use "ISWiAuto14.ISWiProject" for InstallShield 2008 (use SAAuto14.ISWiProject for standalone)

' use "ISWiAuto12.ISWiProject" for InstallShield 12 (use SAAuto12.ISWiProject for standalone)

' use "ISWiAuto1150.ISWiProject" for InstallShield 11.5 (use SAAuto1150.ISWiProject for standalone)

' use "ISWiAuto11.ISWiProject" for InstallShield 11 (use SAAuto11.ISWiProject for standalone)

' use "ISWiAuto1050.ISWiProject" for InstallShield 10.5

' use "ISWiAuto10.ISWiProject" for InstallShield X

' use "ISWiAutomation9.ISWiProject" for DevStudio 9

' use "ISWiAutomation.ISWiProject" for InstallShield Developer

 

' open the project file

objInst.OpenProject Step.ExpProperty(Builder, "Filename")

 

' this code demonstrates incrementing the revision version number

' retrieve and split the ProductVersion

verArr = Split(objInst.ProductVersion, ".")

' increment last field

verArr(UBound(verArr)) = CStr(verArr(UBound(verArr)) + 1)

' update the project

objInst.ProductVersion = Join(verArr, ".")

 

' use this code to set the version to a specific macro value

' objInst.ProductVersion = Application.ExpandMacrosAndScript("%BUILD_VER%")

 

' and save changes

objInst.SaveProject

objInst.CloseProject

 

Notes:

InstallShield 2008 and later also support specifying the product version on the Properties tab.
The InstallShield object model is only provided in a 32-bit version, so it can't be called from the 64-bit version of Visual Build.