version-detection

Reliable way to get Windows Version from registry

这一生的挚爱 提交于 2019-11-27 14:47:11
I'm checking the windows version in an installer (made with NSIS) by checking the following registry key: HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CurrentVersion" According to this post and this page from MSDN, the currentVersion number for Windows 10 should be 10.0. I just installed the Windows 10 Pro Insider Preview and the version number given in the registry is still 6.3, instead of 10.10 as it should. Is there another reliable way in registry to detect Windows 10? Instead of reading the value CurrentVersion , read the new values CurrentMajorVersionNumber (which is 10) and

Detect iOS version less than 5 with JavaScript

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 19:36:15
This is related to the "fix" for position:fixed in older versions of iOS. However, if iOS5 or greater is installed, the fix breaks the page. I know how to detect iOS 5: navigator.userAgent.match(/OS 5_\d like Mac OS X/i) but that won't work for iOS6 when it eventually comes around, or even iOS 5.0.1, only a 2 digit version. So this is what I have atm. $(document).bind("scroll", function() { if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { if (navigator.userAgent.match(/OS 5_\d like Mac OS X/i)) { } else {

Complete list of defines for Delphi versions

无人久伴 提交于 2019-11-26 19:29:39
问题 Does anyone know of a good place where I can find the complete list of version defines for all the Delphi versions, right up to Delphi 2009? 回答1: A very, very good Delphi version include file is the jedi.inc from the the JEDI Code Library ( JCL ). It is always up-to-date and has directives like DELPHI2009 or DELPHI14_UP , ... and it includes a lot of "Feature Directives" like SUPPORTS_INT64 or SUPPORTS_UNICODE_STRING . Here is the link to the repository. 回答2: Here is a list I found that one

Detect iOS version less than 5 with JavaScript

谁都会走 提交于 2019-11-26 06:18:16
问题 This is related to the \"fix\" for position:fixed in older versions of iOS. However, if iOS5 or greater is installed, the fix breaks the page. I know how to detect iOS 5: navigator.userAgent.match(/OS 5_\\d like Mac OS X/i) but that won\'t work for iOS6 when it eventually comes around, or even iOS 5.0.1, only a 2 digit version. So this is what I have atm. $(document).bind(\"scroll\", function() { if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator

How do I detect what .NET Framework versions and service packs are installed?

孤街浪徒 提交于 2019-11-25 21:57:59
问题 A similar question was asked here, but it was specific to .NET 3.5. Specifically, I\'m looking for the following: What is the correct way to determine which .NET Framework versions and service packs are installed? Is there a list of registry keys that can be used? Are there any dependencies between Framework versions? 回答1: The registry is the official way to detect if a specific version of the Framework is installed. Which registry keys are needed change depending on the Framework version you