How can I access (directory) constants from Inno Setup script code ?
I have tried the following without success:
function dbExistis() : Boolean;
begin
Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
How can I access (directory) constants from Inno Setup script code ?
I have tried the following without success:
function dbExistis() : Boolean;
begin
Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
Use ExpandConstant
function
function dbExistis() : Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}') + '\LR-International\DB_LR.IB');
end;
Use the ExpandConstant
function to expand any of the constants value:
function dbExistis: Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}\LR-International\DB_LR.IB'));
end;