Skip to content

Commit

Permalink
extra/nsis: Update VC runtime checker to check for version >= 14.40
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Jun 9, 2024
1 parent b7949a1 commit 2c474af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file not shown.
Binary file not shown.
14 changes: 7 additions & 7 deletions extra/nsis/mp-installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,18 @@ Section "OBS Studio" SecCore
Delete "$INSTDIR\obs-plugins\64bit\win-mf*.*"
File /r "${BUILDDIR}\obs-plugins\64bit"

; 64 bit Visual Studio 2019 runtime check
; 64 bit Visual Studio 2022 runtime check
ClearErrors
SetOutPath "$PLUGINSDIR"
File check_for_64bit_visual_studio_2019_runtimes.exe
ExecWait "$PLUGINSDIR\check_for_64bit_visual_studio_2019_runtimes.exe" $R0
Delete "$PLUGINSDIR\check_for_64bit_visual_studio_2019_runtimes.exe"
IntCmp $R0 126 vs2019Missing_64 vs2019OK_64
vs2019Missing_64:
File check_for_64bit_visual_studio_2022_runtimes.exe
ExecWait "$PLUGINSDIR\check_for_64bit_visual_studio_2022_runtimes.exe" $R0
Delete "$PLUGINSDIR\check_for_64bit_visual_studio_2022_runtimes.exe"
IntCmp $R0 126 vs2022Missing_64 vs2022OK_64
vs2022Missing_64:
File VC_redist.x64.exe
ExecWait '"$PLUGINSDIR\VC_redist.x64.exe" /quiet /norestart'
Delete "$PLUGINSDIR\VC_redist.x64.exe"
vs2019OK_64:
vs2022OK_64:
ClearErrors

# ----------------------------
Expand Down

0 comments on commit 2c474af

Please sign in to comment.