Pascal Scripting: ExpandConstant

Prototype:

function ExpandConstant(const S: String): String;

Description:

Changes all constants in S to their values. For example, ExpandConstant('{srcexe}') is changed to the filename of Setup.

An exception will be raised if there was an error expanding the constants.