PDA

View Full Version : How to detect version of FS9/FSX/service packs


ovh
01 Nov 2009, 16:40
Hi all, I'm new here :)

I'm writing a tool for add-on developers, and I need to detect what version of FS is installed on the target system. I notice the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\microsoft games\flight simulator\10.0 (allow me to detect FSX) but is there a way to detect the service pack ? SP1/SP2/Acceleration ?...
I thought to look for version information in fsx.exe file, I have this information (in my case, it's FSX SP2) :
10.0.61472.0 (fsx-sp2.20071210-2023)
Is there version numbers specific for each SP, or it's required to detect the following pattern (pcre) ?
/[0-9\.]+ \(fsx-([a-z0-9]+).[0-9\-]*\)/
And the results could be : "sp1", "sp2", or "acceleration" ?

I presume FS9 is registered like this : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\microsoft games\flight simulator\9.0, right ? Are there any SP on FS9 ?

Thanks :)

n4gix
01 Nov 2009, 17:19
I see nothing in the Registry that indicates current version information...

I know that I have FS9 v9.1 installed, yet the Registry still displays 9.0 as the version.

I have FSX+Acceleration installed, yet the Registry only displays version 10.0

BASys
02 Nov 2009, 10:22
Hi Folks

There is version specific FSX data in the registry,
retained in the installer tree,
so it may contain all versions & SPs.

It'd be much easier to -
- read the registry for FSX's location
- read fsx.exe file version

See Wiki for FSX version numbers (http://www.fsdeveloper.com/wiki/index.php?title=SDK_Installation_%28FSX%29), (scroll down).

HTH
ATB
Paul

ovh
03 Nov 2009, 16:51
Thank you very much for the answer, I forget to search into the wiki, I'm new here :)

I got everything I need in there :)