Seems like the variable type PChar is not anymore compatible with Inno Setup 6.
https://jrsoftware.org/ishelp/index.php?topic=unicode
Quoting:
Quote:
|
Its 'PChar' type has been renamed to 'PAnsiChar'
|
and
Quote:
|
If you want to compile an existing script that imports ANSI Windows API calls with the Unicode compiler, either upgrade to the 'W' Unicode API call or change the parameters from 'String' or 'PChar' to 'AnsiString'. The 'AnsiString' approach will make your [Code] compatible with both the Unicode and the non Unicode version.
|
Try replacing in the mentioned script from
PChar to either
PAnsiChar or
AnsiString