|
8 | 8 |
|
9 | 9 | ClearErrors |
10 | 10 |
|
11 | | - ; All versions require the MSVC 2015 redist for the LOOT API. |
| 11 | + ; All versions require the MSVC 2017 redist for the LOOT API. |
12 | 12 | ${If} ${RunningX64} |
13 | 13 | StrCpy $MSVC_Sub_Key "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" |
14 | 14 | ${Else} |
|
22 | 22 |
|
23 | 23 | ${If} $MSVC_Installed == "0" |
24 | 24 | ${OrIf} $MSVC_Major < 14 |
25 | | - ${OrIf} $MSVC_Minor < 0 |
26 | | - ${OrIf} $MSVC_Bld < 24215 |
27 | | - DetailPrint "Visual C++ 2015 Redistributable registry key was not found; assumed to be uninstalled." |
28 | | - DetailPrint "Downloading Visual C++ 2015 Redistributable Setup..." |
| 25 | + ${OrIf} $MSVC_Minor < 15 |
| 26 | + ${OrIf} $MSVC_Bld < 26706 |
| 27 | + DetailPrint "Visual C++ 2017 Redistributable registry key was not found; assumed to be uninstalled." |
| 28 | + DetailPrint "Downloading Visual C++ 2017 Redistributable Setup..." |
29 | 29 | SetOutPath $TEMP |
30 | | - NSISdl::download "https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x86.exe" "vc_redist.x86.exe" |
| 30 | + NSISdl::download "https://download.visualstudio.microsoft.com/download/pr/749aa419-f9e4-4578-a417-a43786af205e/d59197078cc425377be301faba7dd87a/vc_redist.x86.exe" "vc_redist.x86.exe" |
31 | 31 |
|
32 | 32 | Pop $R0 ;Get the return value |
33 | 33 | ${If} $R0 == "success" |
34 | | - DetailPrint "Running Visual C++ 2015 Redistributable Setup..." |
| 34 | + DetailPrint "Running Visual C++ 2017 Redistributable Setup..." |
35 | 35 | Sleep 2000 |
36 | 36 | HideWindow |
37 | 37 | ExecWait '"$TEMP\vc_redist.x86.exe" /quiet /norestart' |
38 | 38 | BringToFront |
39 | | - DetailPrint "Finished Visual C++ 2015 Redistributable Setup" |
| 39 | + DetailPrint "Finished Visual C++ 2017 Redistributable Setup" |
40 | 40 |
|
41 | 41 | Delete "$TEMP\vc_redist.x86.exe" |
42 | 42 | ${Else} |
43 | 43 | DetailPrint "Could not contact Microsoft.com, or the file has been (re)moved!" |
44 | 44 | ${EndIf} |
45 | 45 | ${Else} |
46 | | - DetailPrint "Visual C++ 2015 Redistributable is already installed; skipping!" |
| 46 | + DetailPrint "Visual C++ 2017 Redistributable is already installed; skipping!" |
47 | 47 | ${EndIf} |
48 | 48 |
|
49 | 49 | ; Python version requires Python, wxPython, Python Comtypes and PyWin32. |
|
0 commit comments