如何从Inno Setup脚本代码访问(目录)常量?
我试过以下没有成功:
function dbExistis() : Boolean;
begin
Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
Run Code Online (Sandbox Code Playgroud)
使用该ExpandConstant函数展开任何常量值:
function dbExistis: Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}\LR-International\DB_LR.IB'));
end;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
617 次 |
| 最近记录: |