Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down