Sign in to follow this  

Deploy application with DirectX 9

This topic is 4749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everybody, My name is Rogerio and this is my first message here :) Let´s talk my problem: I´m working in an application programing in C# that uses Managed Direct X. I´m using Visual Studio.NET. Before insert DirectX in my code, I´ve already make a deploy project to may application using VS.Net. The problem is: now that I put DirectX, what I have to do (which launch conditions and which parameters) to my deploy application detect if DirectX is or not installed in the machine and, if not, install it? Thanks, RogerPS

Share this post


Link to post
Share on other sites
You can check for the Directx Version using the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectXUnder the Name Type Data
Version REG_SZ A string value that represents the currently installed
DirectX version, in the following format:

x.xx.xx.xxxx
Or you can use the DirectXSetupGetVersion() function.

Share this post


Link to post
Share on other sites
Thanks Mohamed,

I´ve already tried this, but I think that I was doing something wrong so. Tell me if it is the right way, please:

1) In Launch Condition, I choose "Add Registry Launch Condition"
2) Selecting in treeview "Search for RegistryEntry1", type in Property Window:
a)Property: DIRECTXSEARCH
b)RegKey: Software\Microsoft\DirectX
c)Root:vsdrrHKLM
d)Value: FullInstallVer
3) Selecting in treeview "Condition1", in Property Window:
a)Condition: DIRECTXSEARCH>="4.09.00.0904"
b)InstallUrl: DirectX\dxsetup.exe (I´ll put the directx redistribut version in a folder DirectX inside the folder of installation)
c)Message:"..."

Thanks.

Share this post


Link to post
Share on other sites
Ok, I´m almost there! I put:

1) In Launch Condition, I choose "Add Registry Launch Condition"

2) Selecting in treeview "Search for RegistryEntry1", type in Property Window:
a)Property: DIRECTXSEARCH
b)RegKey: Software\Microsoft\DirectX
c)Root:vsdrrHKLM
d)Value: Version

3) Selecting in treeview "Condition1", in Property Window:
a)Condition: DIRECTXSEARCH>="4.09.00.0904"
b)InstallUrl: .\DirectX\dxsetup (I´ll put the directx redistribut version in a folder DirectX inside the folder of installation)
c)Message:"..."

What happens: I call setup (created by VS.Net) in a computer that does not have the DX installed. When .msi start, appears the message that I put in 3c option. The dxsetup program start but a message from my installation appears that it was finished! (but dxsetup continues!) The problem now is this message!!! Does anybody know how to solve it?

Thanks

Share this post


Link to post
Share on other sites

This topic is 4749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this