Skip to content

Ini_ReadEntry

Reads value of entry

Ini_ReadEntry(sFile, sSection, sEntry, bMustExist) As Boolean

Filename

Section name

Entry name

Entry must exist. If True, the function returns False when the entry doesn’t exist.

Result will be stored in gsValue. If the entry doesn’t exist and bMustExist is False, gsValue is empty.

The INI file must exist. If it doesn’t, the function returns False, whatever the value of bMustExist.

If bStatus Then bStatus = Ini_ReadEntry("C:\CapaInstaller.ini", "SectionName", "EntryName", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Ini_DeleteEntry Ini_ExistEntry Ini_WriteEntry Constants Package Property Variables