SdMakeName

InstallShield 2014 ยป InstallScript Language Reference

The SdMakeName function creates a section name for a custom dialog. This section name is used in writing to and reading from an .iss file, which is used when running an InstallScript-based installation project's Setup.exe in silent mode.

Syntax

SdMakeName ( svSection, szDlg, szUnused, nvDlgName );

Parameters

SdMakeName Parameters

Parameter

Description

svSection

Specifies the section name (for example, "MyDlg-0"). InstallShield places a value into this variable using the variables szDlg and nvDlgName. This value is used by SilentReadData and SilentWriteData.

szDlg

Specifies the name of the custom dialog (for example, "MyDlg") for which to create a section name.

szUnused

This parameter is not used; pass a null string ("") in this parameter.

nvDlgName

Specifies the counter that records the number of times SdMakeName is called for the dialog named in szDlg. InstallShield automatically increments this counter.

For sections to be properly named, you must use a unique variable name in this parameter for each different custom dialog. A simple way to do this is to use the dialog name in szDlg to name the variable. For example, when szDlg is "MyDlgOne," name the variable in this parameter nvMyDlgOne, and when szDlg is "MyDlgTwo," name the variable nvMyDlgTwo.

Return Values

None.

See Also