2017-12-27 4 views
2

Inno Setup의 [Setup] 섹션에서 시스템이 64 비트인지 여부에 따라 조건부로 AppIdAppMutex을 정의 할 수 있습니까?Inno Setup [설정] 64bit 조건부

이유는 32 비트와 64 비트에 대해 현재 두 개의 별도 설치 프로그램이 있지만 하나의 결합 된 설치 프로그램 만 만들고 싶지만 새로운 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; 
관련 문제