ImportStrings 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 ImportStrings to import the contents of a tab-delimited text file (.txt) into the project for a specific language. This method is useful when you have exported the entries to a text file and had them translated.

Syntax

ImportStrings (strfile As String, sLang As Integer, Optional Enum eiType, Optional strLogFile As String) As Boolean

Parameters

ImportStrings Method Parameters

Parameter

Description

strfile

Enter the fully qualified path to the text file that contains the string entries that you want to import.

sLang

Specify the identifier for the language whose string entries you want to import to the project.

eiType

Specify how you want to handle conflicts when importing string entries:

eiIgnore (0)—Do not replace the string entry’s value if it already exists in the project for the specified language.
eiOverwrite (1)—Replace the project’s existing string entry with the one in the text file. This is the default value for this optional parameter.

strLogFile

Specify the fully qualified path to the log file that should contain the status and success of importing the string entries. The log file records any conflicts in importing string entries and lists any improperly formatted, hence unusable, entries. If the log file exists, it is overwritten.

Note • This parameter is optional.

Applies To

ISWiProject

See Also