Sample:
Root: "HKLM64"; Subkey: "Software\Community Talks\Public Talks\Preferences"; \
ValueType: dword; ValueName: "ReuseCong"; ValueData: "{code:ReuseCongregation}"; \
Flags: uninsdeletevalue; Check: IsNewInstall IsWin64
Root: "HKLM64"; Subkey: "Software\Community Talks\Public Talks\Preferences"; \
ValueType: dword; ValueName: "Duplicate"; ValueData: "{code:Duplicate}"; \
Flags: uninsdeletevalue; Check: IsNewInstall IsWin64
Root: "HKLM64"; Subkey: "Software\Community Talks\Public Talks\Preferences"; \
ValueType: dword; ValueName: "Language"; ValueData: "{code:DatabaseLanguage}"; \
Flags: uninsdeletevalue; Check: IsNewInstall IsWin64
Will not compile:
Error on line 406 in
setup.iss
: Directive or parameter"Check"
expression error: Invalid token'IsWin64'
found.
I can't change the IsNewInstall
function:
// Returns True if we are performing a new install
function IsNewInstall(): Boolean;
begin
// Make sure IsUpgrading has already beed called.
result := not bIsUpgrading;
end;
But I include it if it helps.