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

Started by
7 comments, last by RomSteady 19 years ago
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.
Advertisement
tag, because I'd be interested in the answer myself ; )
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
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.
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.
Michael Russell / QA Manager, Ritual EntertainmentI used to play SimCity on a 1:1 scale.
Hmm... I searched for the merge modules on google, but didn't find any places to download them. Can anyone post links to them?
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
Michael Russell / QA Manager, Ritual EntertainmentI used to play SimCity on a 1:1 scale.
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.
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?
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.
Michael Russell / QA Manager, Ritual EntertainmentI used to play SimCity on a 1:1 scale.

This topic is closed to new replies.

Advertisement