Microsoft DirectX 8.1 (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" (this name is 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\DirectX8 folder on the Microsoft® 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.