File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ Function .onInit
296
296
StrCpy $ShowLastUsed " 1"
297
297
${EndIf}
298
298
${EndIf}
299
-
299
+
300
300
; Try to find previously saved GTA:SA install path
301
301
ReadRegStr $2 HKLM " SOFTWARE\Multi Theft Auto: San Andreas All\Common" " GTA:SA Path"
302
302
${If} $2 == " "
@@ -1259,11 +1259,13 @@ FunctionEnd
1259
1259
; ----------------------------------------
1260
1260
; Out $0 = result ("1" = yes, "0" = no)
1261
1261
Function ShouldInstallVC14Redistributable
1262
- IfFileExists " $WINDIR\System32\api-ms-win-crt-runtime-*.dll" FileFound 0
1263
- ${LogText} " api-ms-win-crt-runtime-*.dll not found"
1264
- StrCpy $0 " 1"
1265
- Return
1266
- FileFound:
1262
+ ${If} ${AtMostWin7}
1263
+ IfFileExists " $WINDIR\System32\api-ms-win-crt-runtime-*.dll" FileFound 0
1264
+ ${LogText} " api-ms-win-crt-runtime-*.dll not found"
1265
+ StrCpy $0 " 1"
1266
+ Return
1267
+ FileFound:
1268
+ ${EndIf}
1267
1269
Call IsVC14RedistributableInstalled
1268
1270
IntOp $0 $0 ^ 1
1269
1271
FunctionEnd
You can’t perform that action at this time.
0 commit comments