checking for directx 9

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RoSmecher
    Forum Member
    • Aug 2004
    • 14

    checking for directx 9

    what i wish to do is check if directx 9 is installed on the users computer and if it is not then i wish to simply show a msgbox saying something like "DirectX 9 needs to be installed before running this app."

    i wish to check simply for directx 9.0 doesn't have to be 9.0c

    thanks for your time and i look forward to your reply.
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6138

    #2
    This talks about revision (c);however, maybe it will help or you can question the forum member that posted such.

    Intrigued

    Comment

    • SUF6NEWBIE

      #3
      Basic DX 9(c) detection:

      Code:
      Dxver = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\DirectX", "Version", true);
      
      if (Dxver < "4.09.00.0904") then
      	Dialog.Message(" - An Earlier Version of Directx(tm) detected -","DirectX 9(c) needs to be installed before running this app");
      end

      hope helps..
      btw you can always just download the "directx9(c).zip" module script
      and open it in Setup Factory 7 and grab-modify what you need..
      ..there are a few conditions as to wehter DX9C can be installed,
      so worth a look.
      Last edited by Guest; 01-14-2005, 01:02 PM.

      Comment

      • SUF6NEWBIE

        #4
        to check if is initial release of DX9 (directx9A) or later

        if (Dxver < "4.09.00.0901") then

        end
        Last edited by Guest; 01-15-2005, 04:12 PM.

        Comment

        Working...
        X