|Microsoft DirectX 9.0|
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 redistributable code from one of the following locations into the root path of your setup program.
These files must be included in any distribution of DirectX 9.0 as explained by the "DirectX Redist.txt" file found at (CD root)\License\DirectX Redist.txt.