Jump to content
  • Advertisement
Sign in to follow this  
RogerPS

Deploy application with DirectX 9

This topic is 5054 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
Advertisement
Oops! in previuos message: "I´ve already MADE deploy project to MY application using VS.Net". Sorry to my poor english :)

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!