Including the DirectX 9.0 Object

InstallShield 2019 Express Edition

DirectX provides supporting API libraries for multimedia applications and hardware, including the latest graphics cards. If your product requires DirectX to be installed on the target system, you can add the DirectX object to your project. If the target system does not have DirectX, it is installed during your installation.

After installation, the DirectX runtime cannot be uninstalled. DirectX is a system component; end users cannot uninstall it without reinstalling the operating system.

Tip • The DirectX object is not installed with InstallShield; you need to download it. To learn more, see Downloading Redistributables to Your Computer.

Redistributable Files

The DirectX objects install all DirectX 9.0c core and optional components.

Including the DirectX Object in Projects

When you add the DirectX object to an Express project, InstallShield launches the DirectX Object Wizard.

You can use the DirectX object in compressed or uncompressed installations; the DirectX Object Wizard lets you specify whether the DirectX files should be in a folder in the Disk1 folder, or they should be streamed into the .msi file:

If you specify that the files should be in a folder in the Disk1 folder, InstallShield creates a DirectX folder for your installation at build time and places it in the Disk1 folder of your release. InstallShield lists the DirectX folder in the Disk1 area of the Setup Files view.
If you specify that the files should not be in the Disk1 folder, InstallShield embeds the files in your installation’s .msi file.

Note • The custom action that launches the DirectX installation is sequenced in the Execute sequence and run in deferred system context so that it can be run with elevated privileges on Windows Vista and later systems.

Updating the DirectX Object Files for Express Projects

If you obtain updates for any of the DirectX files and you want to include them in your DirectX object, place them in the appropriate InstallShield Program Files subfolder with the other DirectX files. The location is:

InstallShield Program Files Folder\Objects\DirectX9c\Redist

You can also remove files from that folder if your product does not require them and you do not need to include them in your installation. For more information about the DirectX redistributable files, including details about any updates that Microsoft may have released since the current version of InstallShield was released, see the latest DirectX SDK or Microsoft’s MSDN Web site.

At build time, InstallShield uses whatever redistributable files are in that DirectX folder to build your release.

See Also