Inno Setup スクリプト コードから (ディレクトリ) 定数にアクセスするにはどうすればよいですか?
私は成功せずに次のことを試しました:
function dbExistis() : Boolean;
begin
Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
Inno Setup スクリプト コードから (ディレクトリ) 定数にアクセスするにはどうすればよいですか?
私は成功せずに次のことを試しました:
function dbExistis() : Boolean;
begin
Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
関数を使用しExpandConstant
て定数値を拡張します。
function dbExistis: Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}\LR-International\DB_LR.IB'));
end;
機能を使用するExpandConstant
function dbExistis() : Boolean;
begin
Result := FileExists(ExpandConstant('{commonappdata}') + '\LR-International\DB_LR.IB');
end;