InstallShield 2015 » Automation Interface » Advanced UI and Suite/Advanced UI
Project: This information applies to the following project types:
| • | Advanced UI | 
| • | Suite/Advanced UI | 
Edition: The Advanced UI project type is available in the Professional edition of InstallShield. The Suite/Advanced UI project type is available in the Premier edition of InstallShield. For information about the differences between these two project types, see Advanced UI Projects vs. Suite/Advanced UI Projects.
To open your Advanced UI or Suite/Advanced UI project so that you can modify it through the automation interface, call OpenProject with the fully qualified path to your .issuite file. This method is equivalent to loading a project in InstallShield.
Note: The OpenProject method fails if the project is open in InstallShield.
Syntax
OpenProject (strISWiProjectFile As String, Optional ByVal bReadOnly As Boolean) As Long
Parameters
| Parameter | Description | 
| strISWiProjectFile | Enter the fully qualified path to the project file (.issuite). | 
| 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
| Return Value | Description | 
| 0 | The project was successfully opened. | 
| 1 | The project was opened, but it is locked by some other process. | 
| 2 | Attempted to open project for write access, but project opened in read-only mode. | 
| Error Code 1100 | Unable to open file: %1. Ensure that the file is a valid InstallShield project. | 
Example
The following Visual Basic lines demonstrate this method:
Dim pProj As ISWiProject
Set pProj = CreateObject("ISWiAutoSuite22.ISWiProject")
pProj.OpenProject "C:\MySetups\Project1.issuite"
' Modify project here.
pProj.SaveProject
pProj.CloseProject
Applies To
| • | ISWiProject | 
| InstallShield 2015 Help LibraryJune 2015 | Copyright Information | Contact Us |