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 :)
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 :)