3

Inno Setup スクリプト コードから (ディレクトリ) 定数にアクセスするにはどうすればよいですか?

私は成功せずに次のことを試しました:

function dbExistis() : Boolean;
begin
  Result := FileExists({commonappdata} + '\LR-International\DB_LR.IB');
end;
4

2 に答える 2

5

関数を使用しExpandConstantて定数値を拡張します。

function dbExistis: Boolean;
begin
  Result := FileExists(ExpandConstant('{commonappdata}\LR-International\DB_LR.IB'));
end;
于 2013-01-23T11:04:56.180 に答える
3

機能を使用するExpandConstant

function dbExistis() : Boolean;
  begin
    Result := FileExists(ExpandConstant('{commonappdata}') + '\LR-International\DB_LR.IB');
  end;
于 2013-01-23T11:05:37.003 に答える