Comment: DirectX Version Required (1 minor revision lower than our bundled runtime)
Set Variable DXVERREQUIRED to 9.29.952.3110
 
Set Variable DXRUNTIME to FALSE
if Variable SKIPDXRUNTIME not is Defined 
  Get Common Folder Location System->System Directory into WINSYSDIR
  Get File Version $WINSYSDIR$\D3DX9_43.dll into Variable DXD3DX9VER
  Get File Version $WINSYSDIR$\D3DX10_43.dll into Variable DXD3DX10VER
  Get File Version $WINSYSDIR$\D3DX11_43.dll into Variable DXD3DX11VER
  Comment: MessageBox: DX Runtime Version, $DXD3DX9VER$$NEWLINE$$DXD3DX10VER$$NEWLINE$$DXD3DX11VER$
  if Variable DXD3DX9VER not Greater Than (Version) $DXVERREQUIRED$
    Set Variable DXRUNTIME to TRUE
  end
  if Variable DXD3DX10VER not Greater Than (Version) $DXVERREQUIRED$
    Set Variable DXRUNTIME to TRUE
  end
  if Variable DXD3DX11VER not Greater Than (Version) $DXVERREQUIRED$
    Set Variable DXRUNTIME to TRUE
  end
  if Variable DXRUNTIME Equals TRUE
    Set Variable PREREQ to TRUE
    Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft DirectX Runtime (June 2010)
  end
end
 
