I tried this...
{checkdx9 script}
Set Variable DIRECTX9 to TRUE
Check Registry Key HKLM\\Software\\Microsoft\\DirectX\\Version into DXVERSION
if Variable DXVersion not Greater Than 4.09.00.0905
Set Variable DIRECTX9 to FALSE
Set Variable PREREQ to TRUE
Set Variable PRELIST to $PRELIST$$NEWLINE$DirectX 9.0c Runtime
end
{setupdx9 script}
if Variable DIRECTX9 Equals FALSE
Set Variable PROGRESSTEXT to Installing DirectX 9.0c Runtime files
Install Files D:\\My Documents\\My Downloads\\dxsdk_feb2006.exe to $TEMPDIR$
Run Program $TEMPDIR$\\dxsdk_feb2006.exe
Delete Files $TEMPDIR$\\dxdsk_feb2006.exe
end
When it gets to Install Files... it crashes...
Runtime error in setup script:
Line 149: Unable to obtain command headers. Please rebuild your project.
And yes I've rebuilt my project
