File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -372,28 +372,21 @@ private static string Get45PlusFromRegistry()
372372 // Checking the version using >= will enable forward compatibility.
373373 private static string CheckFor45PlusVersion ( int releaseKey )
374374 {
375+ if ( releaseKey >= 460798 )
376+ return "4.7" ;
375377 if ( releaseKey >= 394802 )
376- return "4.6.2 or later " ;
378+ return "4.6.2" ;
377379 if ( releaseKey >= 394254 )
378- {
379380 return "4.6.1" ;
380- }
381381 if ( releaseKey >= 393295 )
382- {
383382 return "4.6" ;
384- }
385- if ( ( releaseKey >= 379893 ) )
386- {
383+ if ( releaseKey >= 379893 )
387384 return "4.5.2" ;
388- }
389- if ( ( releaseKey >= 378675 ) )
390- {
385+ if ( releaseKey >= 378675 )
391386 return "4.5.1" ;
392- }
393- if ( ( releaseKey >= 378389 ) )
394- {
387+ if ( releaseKey >= 378389 )
395388 return "4.5" ;
396- }
389+
397390 // This code should never execute. A non-null release key should mean
398391 // that 4.5 or later is installed.
399392 return "No 4.5 or later version detected" ;
You can’t perform that action at this time.
0 commit comments