|
#1
|
|||
|
|||
|
HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 InstallationDocument ID: IR04043The information in this article applies to:
SUMMARYThis document provides instructions for adding DirectX 8.1 support to your Setup Factory 6.0 installation. DISCUSSIONIn order to properly add DirectX 8.1 support to your Setup Factory 6.0 installation you will need to download the DirectX 8.1 developer redistributable: DX81Redist.exe (~24.5 MB) DX81Redist.exe can be downloaded from: http://msdn.microsoft.com/directx Once you run this file it will extract all the files you need to distribute. It is recommended that you save your files in the following directory: This will place all the files you need to distribute in the following directory: Note: The redistributable files are also included in the full DirectX 8.1 SDK download (DX81SDK_FULL.exe) or on the DirectX 8.1 SDK CD-ROM. The necessary files will be located in the Redist folder. If you want you can copy the entire Redist folder into the following directory: Compatibility Information DirectX 8.1 is designed for the following Windows Operating Systems: Windows 98, ME, and 2000. Windows XP: DirectX 8.1 is the version of Direct X that ships with Windows XP, therefore no installation is necessary. Windows 95: DirectX 8.1 is not supported on Windows 95. However, DirectX 8.0a is supported on Windows 95, the download can be found here: http://www.microsoft.com/directx/homeuser/downloads/default.asp Windows NT 4.0: DirectX Media 6 is the highest DirectX release for Windows NT 4.0. Service Pack 3.0 or higher must be installed in order to support this. DirectX Media 6 can be downloaded from: http://www.microsoft.com/directx/homeuser/downloads/default.asp Developer Notes This document will explain how to distribute DirectX 8.1 via CD-ROM. After following the steps outlined in the Necessary Configuration section you should have the following files located in your These files need to be located on your CD-ROM for distribution. Indigo Rose Software recommends (and this document assumes) that the above files are located in a folder named DirectX81 on the root of your CD-ROM. Therefore the above files will be found with the following paths on your CD-ROM:
The nice thing about using Microsoft's DirectX installation is that it has all of the processing built into to it for you, all you have to do is launch it. Even if you decided to launch the DirectX 8.1 installation on a Windows 95 machine (where it is not supported) the installation would inform the user that DirectX 8.1 is not supported on their Operating System. We will want to launch the DirectX 8.1 installation at the end out our installation so we will add the following actions to the Shutdown tab of the Actions dialog. You can acess this dialog from the menu under: Design | Actions. The first thing to do is check if the current user has a compatible operating system, so we will add an IF control structure. We will make the IF condition as follows: This basically translates to: If "the operating system is not Windows 95" AND "the operating system is not Windows NT 4.0" AND "the operating system is not Windows NT 3.0" AND "the operating system is not Windows XP" then do the following. The next thing to check is the user's version of DirectX; if they already have DirectX 8.1 (or a newer version) installed on their system then we do not want to run the DirectX 8.1 installation. In order to do this we will need to read the current version of DirectX from the Registry. We will add a Read From Registry action, directly after the If control structure. The Read From Registry action will look like this: The above action will store the current version of DirectX on the user's system, in the variable %DXVersion%. We will then compare this version to the version that we are going to install. If the user's version is older than our version we are going to run the DirectX 8.1 installation. In order to do this we need to use another If control structure. The version of DirectX that we are installing will write: 4.08.01.0881 into the registry, so we will compare that with what is stored in %DXVersion%. Here is the IF condition: This translates to: If "the user's DirectX version is less than the version we are going to install" then continue. The next action will be the execution of the DirectX 8.1 installation using an Execute File action. Given the directory structure discussed above, our Execute File action will look like this: This Execute File action will execute the DirectX 8.1 installation that is found on your CD-ROM. Note: The built-in variable %SrcDrv% is used in the action. It will be expanded, at runtime, to be the root of your CD-ROM. In the end your action list will look something like this: The above actions with insure that DirectX 8.1 will be installed as long as the user has an earlier version of DirectX and is running a compatible operating system. Some additional processing may be necessary, depending on your application you may want to install DirectX 8.0a on your user's system if they are running Windows 95. Or you may want to install DirectX Media 6 if your user is running Windows NT 4.0. Note: The DirectX 8.1 installation will often require a reboot in order to fully complete. If you want to launch your application after the reboot has completed use a Run on RebootMore Information MORE INFORMATIONFor more information please see the following resources:
KEYWORDS: Setup Factory 6.0, DirectX 8.1 Last reviewed: October 30, 2002 Copyright © 2002 Indigo Rose Corporation. All rights reserved. |
| Thread Tools | |
| Display Modes | |
|
|






Linear Mode
