Inno Setup Preprocessor: ReadReg
Prototype
any ReadReg(int 1, str 2, str? 3, any? 4)
Description
Reads the value of the specified key in system registry. First parameter is the root key, such as HKEY_LOCAL_MACHINE. Constants for use with this parameter are declared in ISPPBuiltins.iss file accompanying ISPP. Second parameter specifies a subkey. Third parameter specifies the name of the value, if this parameter is omitted, a default value is assumed. Last optional parameter may be used to specify the default value that will be returned on failure.
Note that this function can return value of any type depending on the type of actual value in registry.