Setting Up the Application Directory
Before you commit your application to a compact disc or floppy disks, you should create an application directory to test your setup program. The application directory should contain all your application files, the setup program, and the DirectX files and drivers.
To set up the application directory, carry out the following steps:
1Create a directory that includes all your application's files. Be sure to create any subdirectories if needed, and place the appropriate application files in the subdirectories.
2Copy the setup executable you wrote to the root of your application directory.
3At the MS-DOS prompt, use the xcopy command to copy the Redist directory on the DirectX 3 compact disc to the root of your application directory. For example, if your application's root directory is D:\Fungame, and the E: drive is your CD-ROM drive, type the following:
xcopy /s e:\redist\*.* d:\fungame
Note The root of your application directory should include the entire contents of the Redist directory distributed on the DirectX 3 SDK to ensure that the DirectXSetup function and the Dxsetup.exe file work properly.
After you copy all the appropriate files to the root application directory, it will look similar to this:
Volume in drive D is SYSTEM
Directory of D:\FUNGAME
. <DIR> 07-26-96 6:43a .
.. <DIR> 07-26-96 6:43a ..
directx <DIR> 07-26-96 6:43a directx
dsetup dll 22,016 07-26-96 4:38a dsetup.dll
dsetup6e dll 36,224 07-26-96 4:38a dsetup6e.dll
dsetup6j dll 36,224 07-26-96 4:38a dsetup6j.dll
dsetupe dll 42,496 07-26-96 4:38a dsetupe.dll
dsetupj dll 42,496 07-26-96 4:38a dsetupj.dll
dinstall dll 168,960 07-26-96 4:38a dinstall.dll
yourfile exe 96,442 07-26-96 4:39a yourfile.exe
yourfile dat 1,508,228 07-26-96 4:39a yourfile.dat
...