if Variable DXRUNTIME Equals TRUE
  Set Variable PROGRESSTEXT to Installing Microsoft DirectX Runtime (June 2010)
  Set Variable PROGRESSMODE to MARQUEE
  Set Variable DXRUNTIMESETUP to 
  Define File Bag : #IADIR#\runtimes\directx_minimal_bin\*.*, include files recursively, get runtime location of files into variable DXRUNTIMESETUP
  Set Variable DXRUNTIMESTATUS to 0
  Run Program $DXRUNTIMESETUP$\DXSETUP.exe /silent (WAIT, get result into variable DXRUNTIMESTATUS)
  Set Variable PROGRESSMODE to 
  if Variable DXRUNTIMESTATUS Equals 3010
    MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
    if Variable REBOOTNOW Equals OK
      Reboot Computer and Resume Setup
    else
      Terminate Installation
    end
  else
    if Variable DXRUNTIMESTATUS not Equals 0
      MessageBox: $TITLE$ Setup, DirectX Runtime installation failed.$NEWLINE$Error Code: $DXRUNTIMESTATUS$$NEWLINE$$NEWLINE$Please download and install this item manually from microsoft.com.
    end
  end
end
 
