如何在Inno Setup脚本中使用{app}或{temp}之类的占位符? [英] How to use placeholder like {app} or {temp} in Inno Setup script?
本文介绍了如何在Inno Setup脚本中使用{app}或{temp}之类的占位符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从Inno Setup脚本代码访问(目录)常量?
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;
推荐答案
function dbExistis() : Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}') + '\LR-International\DB_LR.IB');
end;
这篇关于如何在Inno Setup脚本中使用{app}或{temp}之类的占位符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文