Questions tagged [version-detection]

31 questions
297
votes
13 answers

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

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…
Scott Dorman
  • 42,236
  • 12
  • 79
  • 110
117
votes
7 answers

How do I know which version of Javascript I'm using?

I'm just reading this documentation about Javascript 1.2, but I'm wondering which version of Javascript is being used in the most popular browsers. http://www.tutorialspoint.com/javascript/javascript_nested_functions.htm
Exitos
  • 29,230
  • 38
  • 123
  • 178
48
votes
9 answers

Detect iOS version less than 5 with JavaScript

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…
33
votes
4 answers

Check gcc minor in cmake

Is it possible to check the minor version number of GCC in cmake? I want to do something like this: If (GCC_MAJOR >= 4 && GCC_MINOR >= 3)
Karl von Moor
  • 8,484
  • 4
  • 40
  • 52
29
votes
3 answers

Complete list of defines for Delphi versions

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?
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
27
votes
3 answers

Browser version detect using GWT?

Is there GWT api that will tell me which browser version it detected? I've found a flaw with IE7's regex handling and need to code around some tricky String.matches() expressions.
Stevko
  • 4,345
  • 6
  • 39
  • 66
17
votes
4 answers

Reliable way to get Windows Version from registry

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…
skuallpa
  • 1,147
  • 3
  • 13
  • 28
13
votes
4 answers

Determine highest .NET Framework version

I need to determine the highest .NET framework version installed on a desktop machine from C\C++ code. Looks like I can iterate the folders under %systemroot%\Microsoft.NET\Framework, but that seems kind of error prone. Is there a better way? …
Charles
  • 2,642
  • 3
  • 33
  • 53
9
votes
6 answers

How to programmatically determine installed IIS version

What would the preferred way of programmatically determining which the currently installed version of Microsoft Internet Information Services (IIS) is? I know that it can be found by looking at the MajorVersion key in…
SteinNorheim
  • 2,197
  • 1
  • 15
  • 21
7
votes
4 answers

Detecting .NET version without UserAgent string

Most modern browsers (Chrome 10, Firefox 4, IE9) are all shortening their UserAgent identifiers. As a result, the supported .NET versions are no longer sent to the server. In order to allow our customers to use our ClickOnce application, we need to…
Jaspio
  • 199
  • 3
  • 9
6
votes
1 answer

How to detect current IIS version with PHP?

My approach now is … if ( preg_match( '~IIS/(\d+\.\d+)~', $_SERVER['SERVER_SOFTWARE'], $matches ) ) $version = $matches[1]; … but I have no experience with IIS, and after searching for a while I found no information how reliable that is. The…
fuxia
  • 62,923
  • 6
  • 54
  • 62
5
votes
2 answers

How do I detect if the specific Delphi IDE is running?

I'm working on a component installer (only for Delphi XE2) and I would like to detect if the Delphi XE2 IDE is running. How would you detect it? P.S. I know about the TAppBuilder window class name, but I need to detect also the IDE version.
Martin Reiner
  • 2,167
  • 2
  • 20
  • 34
5
votes
4 answers

Get browser version of IE using Javascript

I am using the following code to get the version of IE in a system. var browser = navigator.appName; var b_version = navigator.appVersion; var version = parseFloat(b_version); alert(version); But the version always get is 4 in IE^…
Sauron
  • 16,668
  • 41
  • 122
  • 174
4
votes
4 answers

How to determine SQL Server 2008 or above

I need to determine programmatically if the database supports the Geography data type and Spatial indexes. These features were introduced in 2008. I also need to determine if CLR is enabled as these features rely on it. What is the most reliable…
Jack Allan
  • 14,554
  • 11
  • 45
  • 57
4
votes
2 answers

Can I assert the python version before the interpreter parses the code?

I want to inform the user which python version they should use: import sys assert sys.version_info >= (3, 6), "Use Python 3.6 or newer" print(f"a format string") But instead, running the above file makes a syntax error: $ python fstring.py. #…
Alex Shroyer
  • 3,499
  • 2
  • 28
  • 54
1
2 3