PreviousNext
Macrovision

OpenProject Method

InstallShield 2008 ยป Automation Interface

Project-Specific

Project

This information does not apply to QuickPatch projects.

Call OpenProject with the fully qualified path to your InstallShield project (.ism) file to be able to modify it. This method is equivalent to loading a project in the IDE.

Note

Note

The ISWiProject.OpenProject method fails if the project is open in the InstallShield user interface.

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 .ism file.

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

See Also




Copyright Information | Contact Macrovision