LoginSignup
0
0

More than 5 years have passed since last update.

Inno Setup 変数をデバッグ画面に出力

Posted at

検証条件
Inno Setup Ver5.6.1

変数をデバッグ画面に表示する

var
  str: string;

begin
  Log(str);
end;

BooleanをStringにする

//ブーリアンを出力する関数を定義
function BoolToStr(Value: Boolean): String; 
begin
  if Value then
    Result := 'True';
  else
    Result := 'False';
end;

function isFileExist():Boolean;
begin
  Result := FileExists( ExpandConstant('{app}\file.txt') );
  Log(BoolToStr(Result));
end;

IntをStringにする

//function IntToStr(i: Int64): String;
var
  Value: Integer;

begin
Log(IntToStr(Value));

FloatをStringにする

function FloatToStr(e: extended): String;

公式ヘルプ
http://www.jrsoftware.org/ishelp/index.php?topic=scriptcreating

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0