1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to detect version of FS9/FSX/service packs

Discussion in 'Tools programming' started by ovh, 1/11/09.

  1. ovh

    ovh

    Joined:
    1/11/09
    Messages:
    2
    Country:
    france
    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) :
    Is there version numbers specific for each SP, or it's required to detect the following pattern (pcre) ?
    Code:
    /[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 :)
  2. n4gix

    n4gix Resource contributor

    Joined:
    26/9/06
    Messages:
    9,391
    Country:
    unitedstates
    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
  3. BASys

    BASys

    Joined:
    25/5/06
    Messages:
    1,247
    Country:
    scotland
    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, (scroll down).

    HTH
    ATB
    Paul
    Last edited: 2/11/09
  4. ovh

    ovh

    Joined:
    1/11/09
    Messages:
    2
    Country:
    france
    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 :)
    Last edited: 3/11/09

Share This Page