DirectX SDK

Preparing the Setup Folder

[Visual Basic]

This topic applies to applications written in C++. For information on distributing an application written in Visual Basic, see Installing DirectX for Visual Basic Applications.

[C++]

The DirectXSetup function takes a parameter, lpszRootPath, that points to the root directory of the installation. It can be NULL to indicate that the root path is the current directory—that is, the directory where your setup program resides.

The root directory must contain Dsetup.dll, and Dsetup32.dll. It must also have a folder named "DirectX" (not case sensitive), containing all the redistributable files and drivers. To create the proper structure on your application setup disk, copy the entire contents of the Dxf\Redist\DirectX7 folder on the DirectX SDK disk into the root path of your setup program. This folder was not copied to your development computer when you installed the SDK, so you have to get it from the original disk.