ImportRegFile Method

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module

Call the ImportRegFile method to import the contents of a registry (REG) file into the registry data for a specified component. This method mimics manually importing a REG file in the IDE.

Syntax

ImportRegFile (RegFile As String, Optional OverWrite As Boolean)

Parameters

ImportRegFile Method Parameters

Parameter

Description

RegFile

Specify the fully qualified path to the REG file that you want to import.

OverWrite

Choose one of the following options for instructing ImportRegFile how you want to handle conflicts when merging registry data:

True—If a value exists in the component's registry data, overwrite it with the value from the REG file.

False—If a value in the REG file is already present in the component's registry data, do not import that value.

The default value for this optional parameter is True.

Applies To

ISWiComponent