From b3581be72c8d3a7ad45cc5985ec1f08a194c27e0 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Sat, 13 Dec 2025 17:52:40 +0300 Subject: [PATCH] Update installer.nsh --- installer.nsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer.nsh b/installer.nsh index a818d74..3e806ea 100644 --- a/installer.nsh +++ b/installer.nsh @@ -11,6 +11,8 @@ !macro customInit Var /GLOBAL VCRedistDownload Var /GLOBAL isInstalled + +${IfNot} ${IsNativeARM64} ${If} ${RunningX64} ;check H-KEY registry ReadRegDWORD $isInstalled HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" "Installed" @@ -19,6 +21,10 @@ ReadRegDWORD $isInstalled HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Installed" StrCpy $VCRedistDownload "https://aka.ms/vs/17/release/vc_redist.x86.exe" ${EndIf} +${Else} + ReadRegDWORD $isInstalled HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\ARM64" "Installed" + StrCpy $VCRedistDownload "https://aka.ms/vs/17/release/vc_redist.ARM64.exe" +${EndIf} ${If} $isInstalled != "1"