During my inno installation I’m trying to write the username and serial to the registry and I get the following error during compile:
Invalid prototype for 'RegisteredUser'
Chunk from Inno
[Code]
function RegisteredUser(): String;
begin
Result := 'test';
end;
[Registry]
Root: HKLM; Subkey: "SOFTWARE\Platform\Brand"; ValueType: string; ValueName: "RegisteredUser"; ValueData: {code:RegisteredUser};
Any ideas?
Or if I can create the registry directly in [Code] that would work also
Thanks
Apparently in inno-setup the function called by
{code:block}must be a single string parameter function (even if you do not use it.