DXGL r829 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r828
|
r829
|
r830
>
Date:
20:58, 4 July 2018
Author:
admin
Status:
new
Tags:
Comment:
Visual C++ 2017.7 runtime support in installer
Modified paths:
/Installer/dxgl.nsi
(modified) (
history
)
/buildtool/buildtool.c
(modified) (
history
)
Diff
[
purge
]
Index: Installer/dxgl.nsi
—
—
@@ -24,6 +24,7 @@
25
25
26
26
!include 'WinVer.nsh'
27
27
!include 'LogicLib.nsh'
28
+!include "WordFunc.nsh"
28
29
!include 'x64.nsh'
29
30
30
31
; HM NIS Edit Wizard helper defines
—
—
@@ -35,13 +36,20 @@
36
37
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
37
38
!include "..\common\version.nsh"
38
39
40
+!if ${COMPILER} == "VC2017_7"
39
41
!ifdef _DEBUG
42
+!define SRCDIR "Debug VS2017"
43
+!else
44
+!define SRCDIR "Release VS2017"
45
+!endif
46
+!else
47
+!ifdef _DEBUG
40
48
!define SRCDIR "Debug"
41
49
!else
42
50
!define SRCDIR "Release"
43
51
!endif
52
+!endif
44
53
45
-
46
54
; MUI2
47
55
!include "MUI2.nsh"
48
56
—
—
@@ -101,6 +109,15 @@
102
110
!define runtime_sha512 "729251371ED208898430040FE48CABD286A5671BD7F472A30E9021B68F73B2D49D85A0879920232426B139520F7E21321BA92646985216BF2F733C64E014A71D"
103
111
!define runtime_regkey SOFTWARE\Microsoft\DevDiv\vc\Servicing\12.0\RuntimeMinimum
104
112
!define runtime_regvalue Install
113
+!else if ${COMPILER} == "VC2017_7"
114
+!define download_runtime 1
115
+!define runtime_url http://www.dxgl.info/download/runtimes/vc14.14/vc_redist.x86.exe
116
+!define runtime_name "Visual C++ 2017.7"
117
+!define runtime_filename "vc_redist.x86.exe"
118
+!define runtime_sha512 "9D954611243942F4AF6CE37D531EA67CB88CA8CFE5BBE7942606AF11577B12F250F3A9622255760B8BF0610EE72C647BAF42BCCC1F708D3EA05B63B6945DEB8F"
119
+!define runtime_regkey SOFTWARE\Microsoft\DevDiv\vc\Servicing\14.0\RuntimeMinimum
120
+!define runtime_regvalue Install
121
+!define runtime_regvalue2 Version
105
122
!else
106
123
!define download_runtime 0
107
124
!endif
—
—
@@ -257,8 +274,25 @@
258
275
!else
259
276
!if ${download_runtime} >= 1
260
277
ReadRegDWORD $0 HKLM ${runtime_regkey} ${runtime_regvalue}
278
+ !if ${COMPILER} == "VC2017_7"
279
+ StrCmp $0 1 skipvcredist1
280
+ goto vcinstall
281
+ skipvcredist1:
282
+ ReadRegDWORD $0 HKLM ${runtime_regkey} ${runtime_regvalue2}
283
+ ${VersionCompare} "$0" "14.14.26429" $1
284
+ ${If} $1 == 0
285
+ SectionSetFlags ${SEC_VCREDIST} 0
286
+ SectionSetText ${SEC_VCREDIST} ""
287
+ ${EndIf}
288
+ ${If} $1 == 1
289
+ SectionSetFlags ${SEC_VCREDIST} 0
290
+ SectionSetText ${SEC_VCREDIST} ""
291
+ ${EndIf}
292
+ goto vcinstall
293
+ !else
261
294
StrCmp $0 1 skipvcredist
262
295
goto vcinstall
296
+ !endif
263
297
skipvcredist:
264
298
SectionSetFlags ${SEC_VCREDIST} 0
265
299
SectionSetText ${SEC_VCREDIST} ""
Index: buildtool/buildtool.c
—
—
@@ -216,6 +216,8 @@
217
217
strncpy(findptr, "\"VC2010\"\n", 13);
218
218
#elif (_MSC_VER == 1800)
219
219
strncpy(findptr, "\"VC2013\"\n", 13);
220
+ #elif (_MSC_VER == 1914)
221
+ strncpy(findptr, "\"VC2017_7\"\n", 13);
220
222
#else
221
223
strncpy(findptr, "\"UNKNOWN\"\n", 13);
222
224
#endif
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version