How do I use a placeholder like {app} or {temp} in an Inno Setup script?
How can I access the (catalog) constants from the Inno Setup script?
I have tried the following with no success:
function dbExistis() : Boolean; begin Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB'); end;
+3
Christian rockrohr
source
to share
2 answers
Use ExpandConstant
function
function dbExistis() : Boolean; begin Result := FileExists(ExpandConstant('{commonappdata}') + '\LR-International\DB_LR.IB'); end;
+3
GeorgeVremescu
source
to share
Use ExpandConstant
to expand any of the constant values:
function dbExistis: Boolean; begin Result := FileExists(ExpandConstant('{commonappdata}\LR-International\DB_LR.IB')); end;
+5
TLama
source
to share