Skip to content

Commit

Permalink
Merge pull request #199 from DHancock/dev
Browse files Browse the repository at this point in the history
Add version defines
  • Loading branch information
DHancock authored Sep 21, 2023
2 parents 96724a1 + 4a61903 commit 45ae0a6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions SudokuSolver/Installer/inno_script.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; This script assumes that all release configurations have been published
; and is framework dependent targeting a WinAppSdk release of 1.3.n where n >= 1
; and they are WinAppSdk and .Net framework dependent.
; Inno 6.2.2

#define appDisplayName "Sudoku Solver"
Expand All @@ -8,6 +8,9 @@
#define appVer RemoveFileExt(GetFileVersion("..\bin\x64\Release\publish\" + appExeName))
#define appId "sudukosolver.8628521D92E74106"

#define winAppSdk_MajorMinorVersion "1.4"
#define winAppSdk_MinPackageVersion "4000.986.611.0" ; version 1.4.1

[Setup]
AppId={#appId}
appName={#appDisplayName}
Expand Down Expand Up @@ -148,9 +151,9 @@ end;
function GetWinAppSdkUrl: String;
begin
case ProcessorArchitecture of
paX86: Result := 'https://aka.ms/windowsappsdk/1.3/latest/windowsappruntimeinstall-x86.exe';
paX64: Result := 'https://aka.ms/windowsappsdk/1.3/latest/windowsappruntimeinstall-x64.exe';
paARM64: Result := 'https://aka.ms/windowsappsdk/1.3/latest/windowsappruntimeinstall-arm64.exe';
paX86: Result := 'https://aka.ms/windowsappsdk/{#winAppSdk_MajorMinorVersion}/latest/windowsappruntimeinstall-x86.exe';
paX64: Result := 'https://aka.ms/windowsappsdk/{#winAppSdk_MajorMinorVersion}/latest/windowsappruntimeinstall-x64.exe';
paARM64: Result := 'https://aka.ms/windowsappsdk/{#winAppSdk_MajorMinorVersion}/latest/windowsappruntimeinstall-arm64.exe';
else
RaiseException('unknown ProcessorArchitecture');
end;
Expand Down Expand Up @@ -338,7 +341,7 @@ begin
// WinAppSdk 1.4.1 is 4000.986.611.0
// Check for any 1.4.n version where n >= 1
if not Exec(ExeFilePath, '4000.986.611.0' + ' ' + GetPlatformParamStr, '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
if not Exec(ExeFilePath, '{#winAppSdk_MinPackageVersion}' + ' ' + GetPlatformParamStr, '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
Log('Exec CheckWinAppSdk.exe failed: ' + SysErrorMessage(ResultCode));
Result := ResultCode = 0;
Expand Down

0 comments on commit 45ae0a6

Please sign in to comment.