Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Rjhenry3

Redistributing with Dx9.0 and C#.net

This topic is 5208 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

I am having trouble redistributing my games to people who do not have the SDK installed on their machine. Everyone who tried it downloaded the newest .net framework and the newest directx 9 version from msdn. My guess is that somehow they need some files from the sdk to be given them when I distribute the game. I have read some other posts similar to this one, but none I have read give any real answer, does anyone know what needs to be done? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Obvious Guy asks, "Are you build in Release mode?"

And have you selected the appropriate runtime libraries (under build options)?

Share this post


Link to post
Share on other sites
You need to install directx with the flag /InstallManagedDX.
(ex: dxsetup.exe /InstallManagedDX).

If you dont. The managed runtimes wont be installed.

Share this post


Link to post
Share on other sites
None of the DX setup files I tried accept /InstallManagedDX as an option. I first tried the option with the dx90update_redist.exe file from microsoft. And then also with the dxwebsetup.exe. If you are referencing a different directx setup file let me know what it is and where I can find it please.


In addition yes I did build them in release mode, but the application I gave them always gave the same error

[edited by - Rjhenry3 on April 5, 2004 12:07:24 PM]

Share this post


Link to post
Share on other sites
I''ve had to run the dx90update_redist.exe and then package my application in a VS.NET setup project referencing the project output from my application to have it copy over the libraries properly. You could always copy the Managed DirectX DLLs into the same directory as your exe. I''m not sure if there''s an easier way to get at the DLLs, but I''ve always opened a command prompt, gone into the windows\assembly\gac directory, then into, say, the Microsoft.DirectX.Direct3d directory, into the highest version number directory (1.xxxxx), and then copied out the DLL file. Hope this helps.

Share this post


Link to post
Share on other sites
quote:
I first tried the option with the dx90update_redist.exe file from microsoft. And then also with the dxwebsetup.exe. If you are referencing a different directx setup file let me know what it is and where I can find it please.



dx90update_redist.exe is the right one, but it is only a self-extracting zip-file. Unpack it to a new folder and then use dxsetup.exe /InstallManagedDX to install the managed files.

Good luck!

Share this post


Link to post
Share on other sites
I tried it on my computer, and it accepts the option, but I dont know if it works for somebody else yet, but from what you say it should be fine. Thank you

Share this post


Link to post
Share on other sites
I extracted the Managed DX Redist manually and uploaded it here to give with my projects :

http://users.pandora.be/echostyle/junk/mdxredist.msi

You can spread this URL to other people should you want. It''s just the MDX version which came with the summer update DX9.

I think MS should redistribute it in this way, too.
While the /InstallManagedDX option DOES work, you''d be amazed how many users don''t know how to use commandline switches.

Share this post


Link to post
Share on other sites
Point well taken. I was actually going to ask if there was a way to do precisely what you have posted. You my friend are a genius . Figuratively speaking of course

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I''m going crazy trying to get managed DX9 apps(mine and others) to run on my win2000 boxes. (.net 1.1 and 9.0b are installed) I''ve tried everything I can find. I do dxsetup.exe /installmanageddx and it installs, but the dx control panels still says I don''t have managed DX installed, and the apps don''t run(process **, thread ** error). I''ve also tried several mdxredist.msi installs(which works on XP boxes). What is up?!? My sanity thanks you in advance.
tfowers

Share this post


Link to post
Share on other sites

  • 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!