4 Replies - 4418 Views - Last Post: 23 March 2010 - 03:36 PM Rate Topic: -----

#1 jmschg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 18-July 09

How to Deploy a Game Program + DirectX in One Package

Post icon  Posted 23 January 2010 - 05:42 PM

I am deploying a game program using VS 9.0. Is there a way in the deployment that I can also package DirectX? My objective is to make the installation easier in case the target machine does not have DirectX installed.

Thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: How to Deploy a Game Program + DirectX in One Package

#2 Fib  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 161
  • View blog
  • Posts: 554
  • Joined: 12-March 09

Re: How to Deploy a Game Program + DirectX in One Package

Posted 25 January 2010 - 12:35 PM

I think DirectSetup is what you're looking for. You can find the API guide on msdn:

http://msdn.microsof...981(VS.85).aspx

I'm sure you can find more info on it if you do a google search for it.
Was This Post Helpful? 0
  • +
  • -

#3 lesPaul456  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 173
  • View blog
  • Posts: 729
  • Joined: 16-April 09

Re: How to Deploy a Game Program + DirectX in One Package

Posted 25 January 2010 - 12:56 PM

There is also a DirectX runtime web installer that you can download. Just have your installer run this before installing your game. The web installer will check the computer to see what components are installed, and then install only what is needed. This results in a smaller, more efficient install package.
Was This Post Helpful? 0
  • +
  • -

#4 PostulateMan  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 50
  • Joined: 14-September 08

Re: How to Deploy a Game Program + DirectX in One Package

Posted 28 January 2010 - 07:57 AM

You can create your own installer, but also I believe the ClickTeam Installer supports installing any number of things. You can have your installer run anything. A project in college I did makes sure OpenGL is up to date, installs OpenAL (for sound), and then installs our game itself.
Was This Post Helpful? 0
  • +
  • -

#5 jmschg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 18-July 09

Re: How to Deploy a Game Program + DirectX in One Package

Posted 23 March 2010 - 03:36 PM

With a lot of reaching, I finally figured out the solution:
1. In Visual Studio after successfully built your application
2. File->Add->New Project...
3. In the left-hand panel, expand:
Other Project Types->Setup and Deployment->Visual Studio Installer
4. Select on the right-hand panel Merge Module Project
5. Enter a name/location at the bottom of the page, if desired; click OK
6. Right click on the Solution Explorer:
a. Merge Module Project->Add->Project Output...
b. Select Project: <your Application Name>
c. Select Primary Output
d. Click OK
7. Right click again on the Solution Explorer:
a. Merge Module Project->Add->Merge Module Reference...
b. Select Microsoft_*ATL*.msm & Microsoft_*CRT*.msm files
8. Right click again on the Solution Explorer:
a. Merge Module Project->Assembly...
b. Under the .NET tab:
Select all Microsoft.Build* items
c. Click OK
9. On the right-hand panel you would see items select in (8)
a. Remove duplicated items
10. Build your Merge Module Project
11. If build successfully, you can move on to creating your Setup Project
a. File->Add->New Project...
b. Select Setup Project
c. Enter a name/location at the bottom of the page, if desired;
click OK
12. Right click on the Solution Explorer:
a. Merge Module Project->Add->Project Output...
b. Select Project: <your Merge Module Name>
c. Click OK
13. On the right-hand panel,
select Merge Module from <your Merge Module Name>
a. Open properties
b. Expand KeyOutput->(MergeModuleProperties)
->Module Retargetable Folder
c. Change the item to Application Folder
14. Build your Setup Project
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1