2017-12-27 18 views
2

Inno Setupの[Setup]セクションでは、システムが64ビットであるかどうかに基づいて条件付きでAppIdAppMutexを定義できますか?Inno Setup [Setup] 64bit条件付き

理由は32ビットと64ビットの2つのインストーラーがありますが、1つの組み合わせインストーラーを作成したいのですが、新しいAppIdなどを使用して現在のバージョンを混乱させたくありません。

答えて

2

scripted constantを使用します。

[Setup] 
AppId={code:GetAppId} 
; UsePreviousLanguage must be set to "no" when AppId includes constants. 
UsePreviousLanguage=no 
[Code] 

function GetAppId(Param: string): string; 
begin 
    if IsWin64 then Result := 'myapp64' 
    else Result := 'myapp32'; 
end;