Skip to content

Ini_ExistEntry

Checks if specified entry exists in specified section in specified file

Ini_ExistEntry(sFile, sSection, sEntry, bMustExist) as Boolean

Filename

Section name

Entry name

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

Result will be stored in gbValue

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

If bStatus Then bStatus = Ini_ExistEntry("C:\CapaInstaller.ini", "SectionName", "EntryName", False)
If bStatus And gbValue Then bStatus = Job_WriteLog("Custom", "EntryName exists", bStatus, True)

Scripting Guidelines

INI file functions Constants Package Property Variables