Inno Setup: {Code:Function} Invalid prototype error
-
I'm using Inno-Setup for my installation, I'm trying to use the {code} constant and when i compile the code it raises an error "Invalid prototype for 'ACADReg'"? what am I missing here? here is the snippet:
[Registry]
Root: HKLM; Subkey: "{code:ACADReg}\{#MyAppName}"; Flags: uninsdeletekey; ValueType: dword; ValueName: "MANAGED"; ValueData: 1;[Code]
var
AcadAppsRegSubKey: String;function ACADReg(): String;
begin
Result := AcadAppsRegSubKey;
end; -
I'm using Inno-Setup for my installation, I'm trying to use the {code} constant and when i compile the code it raises an error "Invalid prototype for 'ACADReg'"? what am I missing here? here is the snippet:
[Registry]
Root: HKLM; Subkey: "{code:ACADReg}\{#MyAppName}"; Flags: uninsdeletekey; ValueType: dword; ValueName: "MANAGED"; ValueData: 1;[Code]
var
AcadAppsRegSubKey: String;function ACADReg(): String;
begin
Result := AcadAppsRegSubKey;
end;Try posting to one of their newsgroups[^]. Not sure how much of a response you'll get at CP, I use InstallShield.