Skip to content

Commit

Permalink
Installer: Check allowed processor architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
tnodir committed Jan 15, 2024
1 parent 0a38bbc commit a2ea0a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/FortFirewall.iss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ UninstallFilesDir={app}\uninst
UninstallDisplayIcon={uninstallexe}
SetupIconFile={#SRC_PATH}\ui_bin\{#APP_ICO_NAME}
ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed={#PROC_ARCHS}
Compression=lzma/normal
SolidCompression=yes

Expand Down
9 changes: 7 additions & 2 deletions deploy/create-installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
@cd %~dp0
@echo off

@set PROC_ARCHS="x86 x64"
@set CHECK_WIN10=
@if not exist ".\build\driver\x86\" (
@set CHECK_WIN10=Y
@set PROC_ARCHS="x64"
@set CHECK_WIN10="Y"
)
@if exist ".\build\driver\ARM64\" (
@set PROC_ARCHS="arm64"
)

@set INNO_PATH=D:\Utils\Dev\InnoSetup5\ISCC.exe

"%INNO_PATH%" FortFirewall.iss /DCHECK_WIN10=%CHECK_WIN10%
"%INNO_PATH%" FortFirewall.iss /DPROC_ARCHS=%PROC_ARCHS% /DCHECK_WIN10=%CHECK_WIN10%

0 comments on commit a2ea0a6

Please sign in to comment.