I didn’t find any tip about DirectX installation at Inno-Setup web site. So, is there any sample installation script? I know that I have to add to [Run] sction something like this:
Filename: "{src}\DirectX\DXSETUP.exe"; WorkingDir: "{src}\DirectX"; Parameters: "/silent"; Check: DirectX; Flags: waituntilterminated; BeforeInstall: DirectXProgress;
But how to include it into setup file (temp folder?), how to extract it, ect?
To include it in the setup, you can install it to
{tmp}and then[Run]it from there.The correct way to install this sort of requirement is to extract in code and call
Exec()on it in thePrepareToInstall()event function:The ISXKB has an article on how to detect the versions installed.