Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Fix: NSIS vc_redist install"

Merged Thomas PRAMPART requested to merge 194-fix-nsis-vc_redist-install into development
2 files
+ 14
19
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -149,17 +149,6 @@ Section "!OpenViBE" Section1
RMDir /r "$INSTDIR\tmp"
no_need_to_install_directx:
; We download the redist from microsoft as its rather large. At the time of writing, vc140 is used by gNeedAccess and hence AS.
SetOutPath "$INSTDIR\dependencies"
IfFileExists "$SYSDIR\msvcp140.dll" no_need_to_install_vc140
NSISdl::download "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.@BUILD_ARCH@.exe" "arch\vc_redist.@BUILD_ARCH@.exe"
Pop $R0 ; Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Download failed: $R0$\nCheck your Internet connection and your firewall settings.$\nVisual Studio 2015 Redistributable @BUILD_ARCH@ (vc140) could not be downloaded.\nYou can try to install it manually from Microsoft and then retry the OpenViBE installer." /SD IDOK
Quit
ExecWait '"arch\vc_redist.@BUILD_ARCH@.exe" /install /norestart /passive'
no_need_to_install_vc140:
; This is the destination path where the zips will be copied to
SetOutPath "$INSTDIR\dependencies\arch"
; The following source paths are relative to this .nsi script location
Loading