Jump to content
  • Advertisement
Sign in to follow this  
Holy Fuzz

[.net] Deploying .Net and MDX alongside application.

This topic is 4800 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, I have a question... How do you set up a visual studio deployment project such that the setup msi file installs the .Net framework and DirectX + MDX (preferably silently) alongside the application being installed. I tried adding the redistributable files as custom actions, but both of them give error messages when you try to install them. Any ideas? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Use a merge module. merge modules are used to deploy controls and components that do not exist as a stand alone application and can not be deployed directly.both the .NET frameword and managed directx have merge modules. you can search for them on the web and add them to your setup project.

Share this post


Link to post
Share on other sites
The easiest way is to use and modify the Setup Bootstrapper project. (http://www.codeproject.com/dotnet/dotNetInstaller.asp)

The most thorough way is to use WiX to build your installer. (http://sourceforge.net/projects/wix)

Make sure you mass in the command-line parameter to DirectX Setup, otherwise MDX will not be installed.

Share this post


Link to post
Share on other sites
Hmm... I searched for the merge modules on google, but didn't find any places to download them. Can anyone post links to them?

Share this post


Link to post
Share on other sites
If you're using InstallShield, you can use these merge modules:

http://www.installshield.com/downloads/modules.asp?prod=isx&lan=english&xmlUse=y

But you might want to check out the April 2005 DirectX SDK that was released last night. There are rumors that the new DirectX redistributable installs Managed DirectX by default.

The rumor: http://community.traygames.com/forums/52/ShowPost.aspx
Notes from the Z Buffer: http://www.thezbuffer.com/articles/183.aspx

Share this post


Link to post
Share on other sites
Quote:
But you might want to check out the April 2005 DirectX SDK that was released last night. There are rumors that the new DirectX redistributable installs Managed DirectX by default


Looks to be true. I just downloaded the April 2005 redistributable. Removed all the DirectX assemblies before installing so the assembly cache was clean. Installed the update just by running dxsetup.exe and it installed the new assemblies. My guess is it checks to see if you have .NET installed, and if so installs the assemblies.

Should make redistriubting games much easier now. I just recently ran into this same headache myself. The new redistributable is just over 30 megs which is a bit hefty and the managed DX files don't have their own MSI anymore; not sure what can and can't be trimmed at this point. Still, better than the manual process before.

Share this post


Link to post
Share on other sites
I have a copy of Installshield X, but it only ships with DirectX 9.0b (and there is no update to bring this to the April 2005 release). Any idea how I could make my InstallShield make setups that install the 9.0c runtime with MDX?

Share this post


Link to post
Share on other sites
Quote:
Original post by trevaaar
I have a copy of Installshield X, but it only ships with DirectX 9.0b (and there is no update to bring this to the April 2005 release). Any idea how I could make my InstallShield make setups that install the 9.0c runtime with MDX?


I'd say make a "Redist" folder underneath your installer, copy the DX9 redist files into it, and create a post-install step that runs the DX9 installer.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!