OpenProject Method

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module

To open your project so that you can modify it through the automation interface, call OpenProject with the fully qualified path to your .ism or .dim file. This method is equivalent to loading a project in InstallShield.

Note • The ISWiProject.OpenProject method fails if the project is open in InstallShield.

Syntax

OpenProject (strISWiProjectFile As String, Optional ByVal bReadOnly As Boolean) As Long

Parameters

OpenProject Method Parameters

Parameter

Description

strISWiProjectFile

Enter the fully qualified path to the project file (.ism or .dim).

bReadOnly

Determines whether the project is opened with write privileges. True opens the project as a read-only file. The default value for this optional parameter is False.

Return Values and Errors

OpenProject Method Return Values and Errors

Return Value

Description

0

Project successfully opened.

1

Project opened, but is locked by some other process.

2

Attempted to open project for write access, but project opened in read-only mode.

3

There was a problem creating the merge module catalog. Verify that the merge module search path is correct (via the File Locations tab of the Options dialog box or using -o for the Standalone Build), verify that no merge modules on the merge module path are corrupt, or self-register IsMMUpdater2.dll.

Error Code 1100

Unable to open file: %1. Ensure that the file is a valid InstallShield project.

Error Code 1101

Unable to open file: %1. This project was created using a previous version of InstallShield Developer, InstallShield–Windows Installer or InstallShield Express.

Error Code 1102

Unable to open file: %1. This project was created using InstallShield Professional or InstallShield Express 2.xx.

Error Code 1103

Unable to open file: %1. The project was created using a more recent version of InstallShield Developer or the project has been updated to a more recent version of InstallShield, InstallShield DevStudio, or InstallShield Developer.

Applies To

ISWiProject

See Also