PreviousNext
Macrovision

CreateProject Method

InstallShield 2008 ยป Automation Interface

The CreateProject method creates a new InstallShield project file (.ism) for a Basic MSI, InstallScript, InstallScript MSI, InstallScript Object, or Merge Module project.

Syntax

CreateProject (strISWiProjectFile As String, ByVal projectType As ISWiProjectType)

Parameters

CreateProject Method Parameters 

Parameter

Description

strISWiProjectFile

Enter the fully qualified path to the .ism file that you want to create. Include the full file name.

projectType

Specify what type of project you want to create. Valid values are:

  • eptMsi—Creates a Basic MSI project.
  • eptScript—Creates an InstallScript MSI project.
  • eptPro—Creates an InstallScript project.
  • eptProObj—Creates an InstallScript Object project.
  • eptMsm—Creates a Merge Module project.

Sample

The following sample code creates a Basic MSI project called TestProject.ism.

Dim pProject As ISWiAuto14.ISWiProject

Set pProject = CreateObject("ISWiAuto14.ISWiProject")

Dim sProjectName As String

sProjectName = "C:\InstallShield 2008 Projects\TestProject.ism"

pProject.CreateProject sProjectName, eptMsi

pProject.OpenProject sProjectName, False

pProject.CloseProject

Applies To




Copyright Information | Contact Macrovision