>From MSDN 
>(http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/intro/program/version/versioncheck.asp):

"There is no direct way to obtain the DirectX version number. However, each 
version has a characteristic set of objects and interfaces.
...

Rather than provide a detailed list here of each version's characteristic 
interfaces and objects, you should refer to the DirectXsoftware development 
kits (SDKs) sample section. One of the samples is a function, GetDXVersion, 
that includes tests for all DirectX versions. GetDXVersion returns an integer 
that corresponds to the DirectX version that is present on the system. As long 
as this integer is greater than or equal to your desired version number, your 
application will run normally. You can find the sample code under your SDK root 
folder at \Samples\Multimedia\DXMisc\GetDXVer."




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Enns
Sent: Tuesday, March 18, 2008 4:58 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Detecting the version of an installed file?

Howdy all,

I'm working on an installer that needs to detect whether a specific version of 
DirectX 9.0 is installed (9.0c). Unfortunately a standard registry check using 
this:

  <Property Id="DIRECTXVERSION">
    <RegistrySearch Id="DirectXVersion" Root="HKLM" Type="raw" 
Key="SOFTWARE\Microsoft\DirectX" Name="Version"/>
  </Property>

doesn't work since the Version value is the same for all flavours of DirectX 
9.0. I do know a specific file that is installed in c:\windows\system32 that 
identifies the version of DirectX installed, and also know what version number 
I need to see on it to be happy.

How do I look up this file's version, so I can put that value into a property 
and the use it as a condition? Alternatively, does anyone know of a better way 
to detect the specific version of DirectX 9.0 that is installed on a machine?

Thanks!

Neil
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to