728x90
설치되는 Server or PC의 bit수를 확인하여 일치하는 bit로 자동 설치되도록 package하는 방법
- 허용 가능한 비트 설정 (2종류 일때)
ArchitecturesAllowed=x86 x64
ArchitecturesInstallIn64BitMode=x64
[Components]
Name: Bin_32; Description: 32-bit; Types: full; Check: IsX86; Flags: dontinheritcheck
Name: Bin_64; Description: 64-bit; Types: full; Check: IsX64; Flags: dontinheritcheck
[Code]
function IsX64: Boolean;
begin
Result := Is64BitInstallMode and (ProcessorArchitecture = paX64);
end;
function IsX86: Boolean;
begin
Result := (Is64BitInstallMode=false) and (ProcessorArchitecture = paX86);
end;
- 위의 작업 후 설치 할 파일에 Check: not Is64BitInstallMode 구문 표시 필요
[Files]
Source: "test.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode
Source: "test.exe"; DestDir: "{app}"; Check: Is64BitInstallMode
- 허용 가능한 비트 설정 (3종류일때)
ArchitecturesAllowed=x86 x64 ia64
ArchitecturesInstallIn64BitMode=x64 ia64
'Package > innosetup' 카테고리의 다른 글
innosetup page 종류 (0) | 2019.12.13 |
---|---|
StringChange / StringChangeEx (0) | 2019.12.11 |
Exec / ShellExec (0) | 2019.12.10 |
Radio Button (0) | 2019.07.28 |
Innosetup 기본 포멧 (0) | 2019.07.28 |