Detecting ands Installing DirectX

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Laura-2
    Forum Member
    • Jan 2002
    • 12

    Detecting ands Installing DirectX

    Hello:

    That steps I must follow so that detects to me and it installs DirectX to me, as long as the version is inferior to the 8? Thank you very much.
  • Mark
    Indigo Rose Staff Member
    • Jun 2000
    • 1945

    #2
    Re: Detecting ands Installing DirectX

    Hi,

    You can detect the DirectX version by querying this key in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Vers ion

    DirectX 8.0 stores 4.08.00.0400 as its version in the registry.

    mark.

    [This message has been edited by Mark (edited 01-29-2002).]
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    • Laura-2
      Forum Member
      • Jan 2002
      • 12

      #3
      Re: Detecting ands Installing DirectX

      Hello:
      Like doing the following thing:
      If the version of Directx is greater to the 8, to execute a program.
      If the version of Directx is smaller to the 8, to verify that Windows has and to install Directx 8 depending on the version of Windows. Later to execute a program.
      Thank you very much.

      Comment

      • Mark
        Indigo Rose Staff Member
        • Jun 2000
        • 1945

        #4
        Re: Detecting ands Installing DirectX

        Hi,

        Basically you would follow these steps:

        Read From Registry
        Read the version into: %DirectXVer%

        Execute Program
        Execute DirectX installations
        Boolean Condition: %DirectXVer% < 4.08.00.0400
        Wait For Return: Checked

        Execute Program
        Launch your main program

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment

        • Laura-2
          Forum Member
          • Jan 2002
          • 12

          #5
          Re: Detecting ands Installing DirectX

          Thanks Marck you are an angel.

          Comment

          Working...
          X