Debian Codegraph @

Source/Tests/winver.nsi

raw
1 ####
2 #
3 # This massive script tests WinVer's version, SP, platform and server detection.
4 # It also tests comparison of version and SP with every other available version.
5 #
6 # To make this work on one computer, a script storing the result of GetVersionEx
7 # was executed on a number of different Windows versions. Using a hack in WinVer
8 # this script replaces this computer's results with the ones from the script and
9 # runs the tests for every stored result.
10 #
11 # To add a test for another version, use the following script.
12 #
13 # !include LogicLib.nsh
14 #
15 # OutFile WinVer.exe
16 # ShowInstDetails show
17 #
18 # Function PrintSysVersion
19 #
20 # System::Alloc 156
21 # Pop $0
22 # System::Call *$0(ir1)
23 # System::Call kernel32::GetVersionEx(pr0)i.R0
24 #
25 # DetailPrint 'StrCpy $2_RES $R0'
26 #
27 # System::Call '*$0(i.R0,i.R1,i.R2,i.R3,i.R4,&t128.R5,&i2.R6,&i2.R7,&i2.R8,&i1.R9,&i1)'
28 # DetailPrint 'StrCpy $2_CSD "$R5"'
29 # DetailPrint 'StrCpy $2_INIT "i $R0, i $R1, i $R2, i $R3, i $R4, &t128 s, &i2 $R6, &i2 $R7, &i2 $R8, &i1 $R9, &i1 0"'
30 #
31 # StrCpy $R0 $0
32 # IntOp $R1 $R0 + $1
33 # IntOp $R1 $R1 - 1
34 # StrCpy $R3 '# '
35 #
36 # ${For} $R2 $R0 $R1
37 #
38 # System::Call *$R2(&i1.R4)
39 # IntFmt $R4 %02x $R4
40 # StrCpy $R3 $R3$R4
41 #
42 # ${Next}
43 #
44 # DetailPrint $R3
45 #
46 # System::Free $0
47 #
48 # FunctionEnd
49 #
50 # Section
51 #
52 # DetailPrint "# OSVERSIONINFOEX"
53 #
54 # StrCpy $1 156
55 # StrCpy $2 "$$OSVERSIONINFOEX"
56 # Call PrintSysVersion
57 #
58 # DetailPrint ""
59 #
60 # DetailPrint "# OSVERSIONINFO"
61 #
62 # StrCpy $1 148
63 # StrCpy $2 "$$OSVERSIONINFO"
64 # Call PrintSysVersion
65 #
66 # SectionEnd
67 #
68 #
69 # EXPECTED RESULTS
70 #
71 # SUCCESS Windows 95 OSR B
72 # SUCCESS Windows 98
73 # SUCCESS Windows ME
74 # SUCCESS Windows NT4 SP1
75 # SUCCESS Windows NT4 SP6
76 # SUCCESS Windows 2000
77 # SUCCESS Windows 2000 SP4
78 # SUCCESS Windows XP SP2
79 # SUCCESS Windows XP SP3
80 # SUCCESS Windows XP x64 SP1
81 # SUCCESS Windows Vista
82 # SUCCESS Windows Server 2008
83 # Completed
84 #
85 ####
86
87 Name winver
88 OutFile winver.exe
89
90 RequestExecutionLevel User
91 Unicode False
92 XPStyle on
93 ShowInstDetails show
94
95 Var OSVERSIONINFO_RES
96 Var OSVERSIONINFO_CSD
97 Var OSVERSIONINFO_INIT
98 Var OSVERSIONINFOEX_RES
99 Var OSVERSIONINFOEX_CSD
100 Var OSVERSIONINFOEX_INIT
101 Var WVSTATS_TESTS
102 Var WVSTATS_FAILS
103
104 !define __WinVer_GWV '!insertmacro __WinVerTest_GWV '
105
106 !include Util.nsh
107 !macro __WinVerTest_GWV_Imp ; This macro simulates the GetWinVer instruction
108 System::Store S
109 System::Call '*(&i999)p.r0'
110 Push $OSVERSIONINFO_CSD
111 System::Call '*$0($OSVERSIONINFO_INIT)'
112 ${If} $OSVERSIONINFOEX_RES <> 0
113 Push $OSVERSIONINFOEX_CSD
114 System::Call '*$0($OSVERSIONINFOEX_INIT)'
115 ${EndIf}
116 Pop $8
117 ${If} $8 == Product
118 System::Call '*$0(i,i,i,i,i.r1,&t128,&i2,&i2,&i2,&i1.r2)'
119 StrCpy $9 0 ; W9x
120 ${If} $1 U>= 2
121 StrCpy $9 $2
122 ${IfThen} $9 = 0 ${|} StrCpy $9 4 ${|}
123 ${EndIf}
124 ${ElseIf} $8 == NTDDIMajMin
125 System::Call '*$0(i,i.r1,i.r2)'
126 IntOp $9 $1 << 8
127 IntOp $9 $9 | $2
128 ${ElseIf} $8 == Build
129 System::Call '*$0(i,i,i,i.r9)'
130 ${ElseIf} $8 == ServicePack
131 System::Call '*$0(i,i,i,i,i,&t128.r1,&i2.r9,&i2,&i2,&i1)'
132 StrCpy $2 $1 1
133 ${If} $9 = 0
134 ${AndIf} $2 != ""
135 StrCpy $9 $1 "" 13
136 ${If} $2 != "S"
137 StrCpy $2 $1 1 1
138 StrCmp $2 "" +3
139 IntFmt $2 "%#x" 0x$2
140 IntOp $9 $2 - 9 ; W9x
141 ${EndIf}
142 ${EndIf}
143 ${Else}
144 MessageBox mb_iconstop "Unknown: $8"
145 Quit
146 ${EndIf}
147 System::Free $0
148 Push $9
149 System::Store L
150 !macroend
151 !macro __WinVerTest_GWV outvar field
152 Push "${field}"
153 ${CallArtificialFunction} __WinVerTest_GWV_Imp
154 Pop ${outvar}
155 !macroend
156
157 !macro __WinVer_Call_GetVersionEx STRUCT_SIZE
158
159 !if ${STRUCT_SIZE} == ${OSVERSIONINFO_SIZE}
160
161 StrCpy $3 $OSVERSIONINFO_RES
162 Push $OSVERSIONINFO_CSD
163 System::Call '*$0($OSVERSIONINFO_INIT)'
164
165 !endif
166
167 !if ${STRUCT_SIZE} == ${OSVERSIONINFOEX_SIZE}
168
169 StrCpy $3 $OSVERSIONINFOEX_RES
170 Push $OSVERSIONINFOEX_CSD
171 System::Call '*$0($OSVERSIONINFOEX_INIT)'
172
173 !endif
174
175 !macroend
176
177 !include WinVer.nsh
178 !insertmacro __WinVer_DeclareVars
179
180 !macro TestWinVerDiff NAME VER V_
181
182 !if ${VER} != ${V_}
183
184 ${If} ${IsWin${V_}}
185
186 DetailPrint "Version detection failed for ${NAME}"
187 DetailPrint " Expected: ${VER}"
188 DetailPrint " Got: ${V_}"
189
190 StrCpy $R0 "FAILURE"
191 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
192
193 ${EndIf}
194 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
195
196 !endif
197
198 !macroend
199
200 !define ORDER_95 0
201 !define ORDER_NT4 0
202 !define ORDER_98 1
203 !define ORDER_ME 2
204 !define ORDER_2000 3
205 !define ORDER_XP 4
206 !define ORDER_2003 5
207 !define ORDER_Vista 6
208 !define ORDER_2008 7
209 !define ORDER_7 8
210 !define ORDER_2008R2 9
211
212 !macro TestWinVerOrder NAME VER V_
213
214 !if ${ORDER_${VER}} >= ${ORDER_${V_}}
215
216 ${IfNot} ${AtLeastWin${V_}}
217
218 DetailPrint "Version comparison failed for ${NAME}"
219 DetailPrint " Expected: ${VER} >= ${V_}"
220 DetailPrint " Got: ${VER} < ${V_}"
221
222 StrCpy $R0 "FAILURE"
223 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
224
225 ${EndIf}
226 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
227
228 !endif
229
230 !if ${ORDER_${VER}} <= ${ORDER_${V_}}
231
232 ${IfNot} ${AtMostWin${V_}}
233
234 DetailPrint "Version comparison failed for ${NAME}"
235 DetailPrint " Expected: ${VER} <= ${V_}"
236 DetailPrint " Got: ${VER} > ${V_}"
237
238 StrCpy $R0 "FAILURE"
239 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
240
241 ${EndIf}
242 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
243
244 !endif
245
246 !macroend
247
248 !macro TestWinVer NAME VER SP SERVER PLATFORM
249
250 StrCpy $R0 "SUCCESS"
251
252 StrCpy $__WINVERV ""
253 StrCpy $__WINVERSP ""
254
255 # test version equality
256
257 ${IfNot} ${IsWin${VER}}
258 ${OrIfNot} ${AtLeastWin${VER}}
259 ${OrIfNot} ${AtMostWin${VER}}
260
261 DetailPrint "Version detection failed for ${NAME}"
262
263 StrCpy $R0 "FAILURE"
264 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
265
266 ${EndIf}
267 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
268
269 !insertmacro TestWinVerDiff "${NAME}" ${VER} 95
270 !insertmacro TestWinVerDiff "${NAME}" ${VER} 98
271 !insertmacro TestWinVerDiff "${NAME}" ${VER} ME
272 !insertmacro TestWinVerDiff "${NAME}" ${VER} NT4
273 !insertmacro TestWinVerDiff "${NAME}" ${VER} 2000
274 !insertmacro TestWinVerDiff "${NAME}" ${VER} XP
275 !insertmacro TestWinVerDiff "${NAME}" ${VER} 2003
276 !insertmacro TestWinVerDiff "${NAME}" ${VER} Vista
277 !insertmacro TestWinVerDiff "${NAME}" ${VER} 2008
278 !insertmacro TestWinVerDiff "${NAME}" ${VER} 7
279 !insertmacro TestWinVerDiff "${NAME}" ${VER} 2008R2
280
281 # test version comparison
282
283 !insertmacro TestWinVerOrder "${NAME}" ${VER} 95
284 !insertmacro TestWinVerOrder "${NAME}" ${VER} 98
285 !insertmacro TestWinVerOrder "${NAME}" ${VER} ME
286 !insertmacro TestWinVerOrder "${NAME}" ${VER} NT4
287 !insertmacro TestWinVerOrder "${NAME}" ${VER} 2000
288 !insertmacro TestWinVerOrder "${NAME}" ${VER} XP
289 !insertmacro TestWinVerOrder "${NAME}" ${VER} 2003
290 !insertmacro TestWinVerOrder "${NAME}" ${VER} Vista
291 !insertmacro TestWinVerOrder "${NAME}" ${VER} 2008
292 !insertmacro TestWinVerOrder "${NAME}" ${VER} 7
293 !insertmacro TestWinVerOrder "${NAME}" ${VER} 2008R2
294
295 # test service pack equality
296
297 IntOp $0 ${SP} - 1
298 IntOp $1 ${SP} + 1
299
300 ${IfNot} ${IsServicePack} ${SP}
301 ${OrIf} ${IsServicePack} $0
302 ${OrIf} ${IsServicePack} $1
303
304 ${WinVerGetServicePackLevel} $2
305
306 DetailPrint "Service pack detection failed for ${NAME}"
307 DetailPrint " Expected: ${SP}"
308 DetailPrint " Got: $2"
309
310 StrCpy $R0 "FAILURE"
311 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
312
313 ${EndIf}
314 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
315
316 # test service pack comparison
317
318 ${IfNot} ${AtLeastServicePack} ${SP}
319 ${OrIfNot} ${AtLeastServicePack} $0
320 ${OrIfNot} ${AtMostServicePack} ${SP}
321 ${OrIfNot} ${AtMostServicePack} $1
322
323 DetailPrint "Service pack comparison failed for ${NAME}"
324
325 StrCpy $R0 "FAILURE"
326 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
327
328 ${EndIf}
329 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
330
331
332 # test server detection
333
334 StrCpy $0 "client"
335 ${If} ${IsServerOS}
336 StrCpy $0 "server"
337 ${EndIf}
338
339 ${If} ${SERVER} != $0
340
341 DetailPrint "Server detection failed for ${NAME}"
342 DetailPrint " Expected: ${SERVER}"
343 DetailPrint " Got: $0"
344
345 StrCpy $R0 "FAILURE"
346 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
347
348 ${EndIf}
349 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
350
351 # test platform
352
353 StrCpy $0 "9x"
354 ${If} ${IsNT}
355 StrCpy $0 "nt"
356 ${EndIf}
357
358 ${If} ${PLATFORM} != $0
359
360 DetailPrint "Platform detection failed for ${NAME}"
361 DetailPrint " Expected: ${PLATFORM}"
362 DetailPrint " Got: $0"
363
364 StrCpy $R0 "FAILURE"
365 IntOp $WVSTATS_FAILS $WVSTATS_FAILS + 1
366
367 ${EndIf}
368 IntOp $WVSTATS_TESTS $WVSTATS_TESTS + 1
369
370 DetailPrint "$R0 ${NAME}"
371
372 !macroend
373
374 ###############################################################
375 ###############################################################
376 ###############################################################
377
378 Section
379
380 #### WINDOWS 95 OSR B [4.00.950 B]
381
382 # OSVERSIONINFOEX
383 StrCpy $OSVERSIONINFOEX_RES 0
384 StrCpy $OSVERSIONINFOEX_CSD ""
385 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 0, i 0, i 0, i 0, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
386 # 9c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
387
388 # OSVERSIONINFO
389 StrCpy $OSVERSIONINFO_RES 1
390 StrCpy $OSVERSIONINFO_CSD " B"
391 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 0, i 67109975, i 1, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
392 # 94000000040000000000000057040004010000002042000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
393
394 !insertmacro TestWinVer "Windows 95 OSR B" 95 2 client 9x
395
396 #### WINDOWS 98
397
398 # OSVERSIONINFOEX
399 StrCpy $OSVERSIONINFOEX_RES 0
400 StrCpy $OSVERSIONINFOEX_CSD ""
401 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 0, i 0, i 0, i 0, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
402 # 9c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
403
404 # OSVERSIONINFO
405 StrCpy $OSVERSIONINFO_RES 1
406 StrCpy $OSVERSIONINFO_CSD " "
407 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 10, i 67766222, i 1, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
408 # 94000000040000000a000000ce070a04010000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
409
410 !insertmacro TestWinVer "Windows 98" 98 0 client 9x
411
412 #### WINDOWS 98 SE
413
414 # OSVERSIONINFOEX
415 StrCpy $OSVERSIONINFOEX_RES 1
416 StrCpy $OSVERSIONINFOEX_CSD " A "
417 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 4, i 10, i 67766446, i 1, &t128 s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
418 # 9c000000040000000a000000ae080a040100000020412000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
419
420 # OSVERSIONINFO
421 StrCpy $OSVERSIONINFO_RES 1
422 StrCpy $OSVERSIONINFO_CSD " A "
423 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 10, i 67766446, i 1, &t128 s, &i2 64, &i2 40960, &i2 8544, &i1 68, &i1 0"
424 # 94000000040000000a000000ae080a04010000002041200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
425
426 !insertmacro TestWinVer "Windows 98 SE" 98 1 client 9x
427
428 #### WINDOWS ME
429
430 # OSVERSIONINFOEX
431 StrCpy $OSVERSIONINFOEX_RES 1
432 StrCpy $OSVERSIONINFOEX_CSD " "
433 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 4, i 90, i 73010104, i 1, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
434 # 9c000000040000005a000000b80b5a040100000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
435
436 # OSVERSIONINFO
437 StrCpy $OSVERSIONINFO_RES 1
438 StrCpy $OSVERSIONINFO_CSD " "
439 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 90, i 73010104, i 1, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
440 # 94000000040000005a000000b80b5a04010000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
441
442 !insertmacro TestWinVer "Windows ME" ME 0 client 9x
443
444 #### WINDOWS NT4 SP1 (Client/Server unspecified)
445
446 # OSVERSIONINFOEX
447 StrCpy $OSVERSIONINFOEX_RES 0
448 StrCpy $OSVERSIONINFOEX_CSD ""
449 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 0, i 0, i 0, i 0, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
450 # 9c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
451
452 # OSVERSIONINFO
453 StrCpy $OSVERSIONINFO_RES 1
454 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
455 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 0, i 1381, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
456 # 940000000400000000000000650500000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
457
458 !insertmacro TestWinVer "Windows NT4 SP1" NT4 1 client nt ; Server can only be detected by reading the registry, cannot be performed in test environment.
459 DetailPrint "NOTE: NT4 SP1 client/server test is inaccurate"
460
461 #### WINDOWS NT4 SP6 Server
462
463 # OSVERSIONINFOEX
464 StrCpy $OSVERSIONINFOEX_RES 1
465 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 6"
466 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 4, i 0, i 1381, i 2, &t128s, &i2 6, &i2 0, &i2 0, &i1 3, &i1 0"
467 # 9c0000000400000000000000650500000200000053657276696365205061636b20360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000300
468
469 # OSVERSIONINFO
470 StrCpy $OSVERSIONINFO_RES 1
471 StrCpy $OSVERSIONINFO_CSD "Service Pack 6"
472 StrCpy $OSVERSIONINFO_INIT "i 148, i 4, i 0, i 1381, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
473 # 940000000400000000000000650500000200000053657276696365205061636b2036000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
474
475 !insertmacro TestWinVer "Windows NT4 SP6" NT4 6 server nt
476
477 #### WINDOWS 2000 SP0
478
479 # OSVERSIONINFOEX
480 StrCpy $OSVERSIONINFOEX_RES 1
481 StrCpy $OSVERSIONINFOEX_CSD ""
482 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 0, i 2195, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 1, &i1 0"
483 # 9c0000000500000000000000930800000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100
484
485 # OSVERSIONINFO
486 StrCpy $OSVERSIONINFO_RES 1
487 StrCpy $OSVERSIONINFO_CSD ""
488 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 0, i 2195, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
489 # 94000000050000000000000093080000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
490
491 !insertmacro TestWinVer "Windows 2000 SP0" 2000 0 client nt
492
493 #### WINDOWS 2000 SP1
494
495 # OSVERSIONINFOEX
496 StrCpy $OSVERSIONINFOEX_RES 1
497 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
498 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 0, i 2195, i 2, &t128 s, &i2 1, &i2 0, &i2 0, &i1 1, &i1 0"
499 # 9c0000000500000000000000930800000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000011e
500
501 # OSVERSIONINFO
502 StrCpy $OSVERSIONINFO_RES 1
503 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
504 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 0, i 2195, i 2, &t128 s, &i2 0, &i2 0, &i2 7, &i1 20, &i1 0"
505 # 940000000500000000000000930800000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
506
507 !insertmacro TestWinVer "Windows 2000 SP1" 2000 1 client nt
508
509 #### WINDOWS 2000 SP2
510
511 # OSVERSIONINFOEX
512 StrCpy $OSVERSIONINFOEX_RES 1
513 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 2"
514 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 0, i 2195, i 2, &t128 s, &i2 2, &i2 0, &i2 0, &i1 1, &i1 0"
515 # 9c0000000500000000000000930800000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000011e
516
517 # OSVERSIONINFO
518 StrCpy $OSVERSIONINFO_RES 1
519 StrCpy $OSVERSIONINFO_CSD "Service Pack 2"
520 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 0, i 2195, i 2, &t128 s, &i2 0, &i2 0, &i2 5, &i1 20, &i1 0"
521 # 940000000500000000000000930800000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
522
523 !insertmacro TestWinVer "Windows 2000 SP2" 2000 2 client nt
524
525 #### WINDOWS 2000 SP3
526
527 # OSVERSIONINFOEX
528 StrCpy $OSVERSIONINFOEX_RES 1
529 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 3"
530 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 0, i 2195, i 2, &t128 s, &i2 3, &i2 0, &i2 0, &i1 1, &i1 0"
531 # 9c0000000500000000000000930800000200000053657276696365205061636b2033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000011e
532
533 # OSVERSIONINFO
534 StrCpy $OSVERSIONINFO_RES 1
535 StrCpy $OSVERSIONINFO_CSD "Service Pack 3"
536 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 0, i 2195, i 2, &t128 s, &i2 0, &i2 0, &i2 7, &i1 20, &i1 0"
537 # 940000000500000000000000930800000200000053657276696365205061636b2033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
538
539 !insertmacro TestWinVer "Windows 2000 SP3" 2000 3 client nt
540
541 #### WINDOWS 2000 SP4
542
543 # OSVERSIONINFOEX
544 StrCpy $OSVERSIONINFOEX_RES 1
545 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 4"
546 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 0, i 2195, i 2, &t128s, &i2 4, &i2 0, &i2 0, &i1 1, &i1 0"
547 # 9c0000000500000000000000930800000200000053657276696365205061636b20340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000100
548
549 # OSVERSIONINFO
550 StrCpy $OSVERSIONINFO_RES 1
551 StrCpy $OSVERSIONINFO_CSD "Service Pack 4"
552 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 0, i 2195, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
553 # 940000000500000000000000930800000200000053657276696365205061636b2034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
554
555 !insertmacro TestWinVer "Windows 2000 SP4" 2000 4 client nt
556
557 #### WINDOWS XP PRO SP1
558
559 # OSVERSIONINFOEX
560 StrCpy $OSVERSIONINFOEX_RES 1
561 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
562 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 1, i 2600, i 2, &t128 s, &i2 1, &i2 0, &i2 256, &i1 1, &i1 0"
563 # 9c0000000500000001000000280a00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000001011e
564
565 # OSVERSIONINFO
566 StrCpy $OSVERSIONINFO_RES 1
567 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
568 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 1, i 2600, i 2, &t128 s, &i2 93, &i2 0, &i2 26, &i1 20, &i1 0"
569 # 940000000500000001000000280a00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
570
571 !insertmacro TestWinVer "Windows XP Pro SP1" XP 1 client nt
572
573 #### WINDOWS XP PRO SP2
574
575 # OSVERSIONINFOEX
576 StrCpy $OSVERSIONINFOEX_RES 1
577 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 2"
578 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 1, i 2600, i 2, &t128s, &i2 2, &i2 0, &i2 256, &i1 1, &i1 0"
579 # 9c0000000500000001000000280a00000200000053657276696365205061636b20320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000010100
580
581 # OSVERSIONINFO
582 StrCpy $OSVERSIONINFO_RES 1
583 StrCpy $OSVERSIONINFO_CSD "Service Pack 2"
584 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 1, i 2600, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
585 # 940000000500000001000000280a00000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
586
587 !insertmacro TestWinVer "Windows XP Pro SP2" XP 2 client nt
588
589 #### WINDOWS XP PRO SP3
590
591 # OSVERSIONINFOEX
592 StrCpy $OSVERSIONINFOEX_RES 1
593 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 3"
594 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 1, i 2600, i 2, &t128s, &i2 3, &i2 0, &i2 256, &i1 1, &i1 0"
595 # 9c0000000500000001000000280a00000200000053657276696365205061636b20330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000010100
596
597 # OSVERSIONINFO
598 StrCpy $OSVERSIONINFO_RES 1
599 StrCpy $OSVERSIONINFO_CSD "Service Pack 3"
600 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 1, i 2600, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
601 # 940000000500000001000000280a00000200000053657276696365205061636b2033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
602
603 !insertmacro TestWinVer "Windows XP Pro SP3" XP 3 client nt
604
605 #### WINDOWS XP x64 SP1
606
607 # OSVERSIONINFOEX
608 StrCpy $OSVERSIONINFOEX_RES 1
609 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
610 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 2, i 3790, i 2, &t128s, &i2 1, &i2 0, &i2 256, &i1 1, &i1 0"
611 # 9c0000000500000002000000ce0e00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000001011e
612
613 # OSVERSIONINFO
614 StrCpy $OSVERSIONINFO_RES 1
615 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
616 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 2, i 3790, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
617 # 940000000500000002000000ce0e00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
618
619 !insertmacro TestWinVer "Windows XP x64 SP1" XP 1 client nt
620
621 #### WINDOWS SERVER 2003 STANDARD EDITION SP0
622
623 # OSVERSIONINFOEX
624 StrCpy $OSVERSIONINFOEX_RES 1
625 StrCpy $OSVERSIONINFOEX_CSD ""
626 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 2, i 3790, i 2, &t128 s, &i2 0, &i2 0, &i2 272, &i1 3, &i1 0"
627 # 9c0000000500000002000000ce0e00000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010010300
628
629 # OSVERSIONINFO
630 StrCpy $OSVERSIONINFO_RES 1
631 StrCpy $OSVERSIONINFO_CSD ""
632 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 2, i 3790, i 2, &t128 s, &i2 0, &i2 0, &i2 7, &i1 20, &i1 0"
633 # 940000000500000002000000ce0e0000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
634
635 !insertmacro TestWinVer "Windows Server 2003 SP0" 2003 0 server nt
636
637 #### WINDOWS SERVER 2003 STANDARD EDITION SP1
638
639 # OSVERSIONINFOEX
640 StrCpy $OSVERSIONINFOEX_RES 1
641 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
642 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 2, i 3790, i 2, &t128 s, &i2 1, &i2 0, &i2 272, &i1 3, &i1 0"
643 # 9c0000000500000002000000ce0e00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001001031e
644
645 # OSVERSIONINFO
646 StrCpy $OSVERSIONINFO_RES 1
647 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
648 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 2, i 3790, i 2, &t128 s, &i2 0, &i2 0, &i2 44, &i1 20, &i1 0"
649 # 940000000500000002000000ce0e00000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
650
651 !insertmacro TestWinVer "Windows Server 2003 SP1" 2003 1 server nt
652
653 #### WINDOWS SERVER 2003 STANDARD EDITION SP2
654
655 # OSVERSIONINFOEX
656 StrCpy $OSVERSIONINFOEX_RES 1
657 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 2"
658 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 2, i 3790, i 2, &t128 s, &i2 2, &i2 0, &i2 272, &i1 3, &i1 0"
659 # 9c0000000500000002000000ce0e00000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000001001031e
660
661 # OSVERSIONINFO
662 StrCpy $OSVERSIONINFO_RES 1
663 StrCpy $OSVERSIONINFO_CSD "Service Pack 2"
664 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 2, i 3790, i 2, &t128 s, &i2 93, &i2 0, &i2 20, &i1 20, &i1 0"
665 # 940000000500000002000000ce0e00000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
666
667 !insertmacro TestWinVer "Windows Server 2003 SP2" 2003 2 server nt
668
669 #### WINDOWS SERVER 2003 R2
670
671 # OSVERSIONINFOEX
672 StrCpy $OSVERSIONINFOEX_RES 1
673 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 2"
674 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 5, i 2, i 3790, i 2, &t128 s, &i2 2, &i2 0, &i2 274, &i1 3, &i1 0"
675 # 9c0000000500000002000000ce0e00000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000001201031e
676
677 # OSVERSIONINFO
678 StrCpy $OSVERSIONINFO_RES 1
679 StrCpy $OSVERSIONINFO_CSD "Service Pack 2"
680 StrCpy $OSVERSIONINFO_INIT "i 148, i 5, i 2, i 3790, i 2, &t128 s, &i2 0, &i2 0, &i2 44, &i1 20, &i1 0"
681 # 940000000500000002000000ce0e00000200000053657276696365205061636b2032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
682
683 !insertmacro TestWinVer "Windows Server 2003 x64 R2" 2003 2 server nt
684
685 #### WINDOWS VISTA ULTIMATE SP0
686
687 # OSVERSIONINFOEX
688 StrCpy $OSVERSIONINFOEX_RES 1
689 StrCpy $OSVERSIONINFOEX_CSD ""
690 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 0, i 6000, i 2, &t128s, &i2 0, &i2 0, &i2 256, &i1 1, &i1 0"
691 # 9c0000000600000000000000701700000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100
692
693 # OSVERSIONINFO
694 StrCpy $OSVERSIONINFO_RES 1
695 StrCpy $OSVERSIONINFO_CSD ""
696 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 0, i 6000, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
697 # 94000000060000000000000070170000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
698
699 !insertmacro TestWinVer "Windows Vista SP0" Vista 0 client nt
700
701 #### WINDOWS VISTA ULTIMATE SP1
702
703 # OSVERSIONINFOEX
704 StrCpy $OSVERSIONINFOEX_RES 1
705 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
706 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 0, i 6001, i 2, &t128 s, &i2 1, &i2 0, &i2 256, &i1 1, &i1 0"
707 # 9c0000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000001011e
708
709 # OSVERSIONINFO
710 StrCpy $OSVERSIONINFO_RES 1
711 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
712 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 0, i 6001, i 2, &t128 s, &i2 114, &i2 118, &i2 43684, &i1 202, &i1 0"
713 # 940000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
714
715 !insertmacro TestWinVer "Windows Vista SP1" Vista 1 client nt
716
717 #### WINDOWS VISTA x64 SP1
718
719 # OSVERSIONINFOEX
720 StrCpy $OSVERSIONINFOEX_RES 1
721 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
722 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 0, i 6001, i 2, &t128 s, &i2 1, &i2 0, &i2 256, &i1 1, &i1 0"
723 # 9c0000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000001011e
724
725 # OSVERSIONINFO
726 StrCpy $OSVERSIONINFO_RES 1
727 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
728 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 0, i 6001, i 2, &t128 s, &i2 10402, &i2 0, &i2 5938, &i1 49, &i1 0"
729 # 940000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
730
731 !insertmacro TestWinVer "Windows Vista x64 SP1" Vista 1 client nt
732
733 #### WINDOWS 2008 SERVER SP1
734
735 # OSVERSIONINFOEX
736 StrCpy $OSVERSIONINFOEX_RES 1
737 StrCpy $OSVERSIONINFOEX_CSD "Service Pack 1"
738 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 0, i 6001, i 2, &t128s, &i2 1, &i2 0, &i2 272, &i1 3, &i1 0"
739 # 9c0000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001001031e
740
741 # OSVERSIONINFO
742 StrCpy $OSVERSIONINFO_RES 1
743 StrCpy $OSVERSIONINFO_CSD "Service Pack 1"
744 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 0, i 6001, i 2, &t128s, &i2 0, &i2 0, &i2 0, &i1 0, &i1 0"
745 # 940000000600000000000000711700000200000053657276696365205061636b2031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
746
747 !insertmacro TestWinVer "Windows Server 2008" 2008 1 server nt
748
749 #### WINDOWS 7 RC1
750
751 # OSVERSIONINFOEX
752 StrCpy $OSVERSIONINFOEX_RES 1
753 StrCpy $OSVERSIONINFOEX_CSD ""
754 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 1, i 7100, i 2, &t128 s, &i2 0, &i2 0, &i2 256, &i1 1, &i1 0"
755 # 9c0000000600000001000000bc1b00000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100
756
757 # OSVERSIONINFO
758 StrCpy $OSVERSIONINFO_RES 1
759 StrCpy $OSVERSIONINFO_CSD ""
760 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 1, i 7100, i 2, &t128 s, &i2 28503, &i2 0, &i2 953, &i1 255, &i1 0"
761 # 940000000600000001000000bc1b0000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
762
763 !insertmacro TestWinVer "Windows 7" 7 0 client nt
764
765 #### WINDOWS 7 x64 RC1
766
767 # OSVERSIONINFOEX
768 StrCpy $OSVERSIONINFOEX_RES 1
769 StrCpy $OSVERSIONINFOEX_CSD ""
770 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 1, i 7100, i 2, &t128 s, &i2 0, &i2 0, &i2 256, &i1 1, &i1 0"
771 # 9c0000000600000001000000bc1b00000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100
772
773 # OSVERSIONINFO
774 StrCpy $OSVERSIONINFO_RES 1
775 StrCpy $OSVERSIONINFO_CSD ""
776 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 1, i 7100, i 2, &t128 s, &i2 22455, &i2 0, &i2 31205, &i1 95, &i1 0"
777 # 940000000600000001000000bc1b0000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
778
779 !insertmacro TestWinVer "Windows 7 x64" 7 0 client nt
780
781 #### WINDOWS 7 Enterprise x64 RTM
782
783 # OSVERSIONINFOEX
784 StrCpy $OSVERSIONINFOEX_RES 1
785 StrCpy $OSVERSIONINFOEX_CSD ""
786 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 1, i 7600, i 2, &t128 s, &i2 0, &i2 0, &i2 256, &i1 1, &i1 0"
787 # 9c0000000600000001000000b01d00000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100
788
789 # OSVERSIONINFO
790 StrCpy $OSVERSIONINFO_RES 1
791 StrCpy $OSVERSIONINFO_CSD ""
792 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 1, i 7600, i 2, &t128 s, &i2 0, &i2 0, &i2 19720, &i1 113, &i1 0"
793 # 940000000600000001000000b01d0000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
794
795 !insertmacro TestWinVer "Windows 7 Enterprise x64" 7 0 client nt
796
797 #### WINDOWS 2008 R2 x64
798
799 # OSVERSIONINFOEX
800 StrCpy $OSVERSIONINFOEX_RES 1
801 StrCpy $OSVERSIONINFOEX_CSD ""
802 StrCpy $OSVERSIONINFOEX_INIT "i 156, i 6, i 1, i 7100, i 2, &t128 s, &i2 0, &i2 0, &i2 272, &i1 3, &i1 0"
803 # 9c0000000600000001000000bc1b00000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010010300
804
805 # OSVERSIONINFO
806 StrCpy $OSVERSIONINFO_RES 1
807 StrCpy $OSVERSIONINFO_CSD ""
808 StrCpy $OSVERSIONINFO_INIT "i 148, i 6, i 1, i 7100, i 2, &t128 s, &i2 37797, &i2 0, &i2 9341, &i1 83, &i1 0"
809 # 940000000600000001000000bc1b0000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
810
811 !insertmacro TestWinVer "Windows 2008 R2 x64" 2008R2 0 server nt
812
813 SectionEnd
814
815 Section "-Results"
816 IntOp $0 $WVSTATS_TESTS - $WVSTATS_FAILS
817 StrCpy $1 "Passed $0 of $WVSTATS_TESTS tests"
818 ${If} $0 <> $WVSTATS_TESTS
819 Abort $1
820 ${Else}
821 DetailPrint $1
822 ${EndIf}
823 SectionEnd