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.

 

InstallShield

 

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).  Use the DevStudio/X/10.5/11/12/2008/Express 12+ option for all Professional, Premier, and DevStudio versions later than v9 and all Express versions later than v11.

 

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".

 

Build location: The fully qualified path to the folder where you want the output folders and files to be placed (optional, does not apply to PackageForTheWeb).

 

Media name: Media name to compile (applies only for InstallShield Professional scripts).

 

Release: The release name as specified in the Release Wizard (optional, does not apply to PackageForTheWeb).

 

Flags that apply only to Developer and DevStudio:

 

Configuration: Specifies the product configuration for the release (optional).

 

Release flags: Specifies any release flags that you would like to include in your release. Separate multiple flags with commas (optional).

 

Treat warnings as errors: Treats warnings that occur during the build process as errors. Each warning increments the error count by one..

 

Stop on error condition: If you want the build to stop when it encounters an error, check this option. If you want the build to stop when it encounters a warning, use this parameter in conjunction with warnings option.

 

 

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("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

 

Note: InstallShield 2008 and later also support specifying the product version on the Properties tab.