if Variable VC10_X86 Equals FALSE
  Set Variable PROGRESSTEXT to Installing Microsoft Visual C++ Runtime 10.0 (includes ATL and MFC)
  Set Variable VC10FILES_X86 to 
  Define File Bag : #IADIR#\runtimes\vc10bin_x86\*.*, get runtime location of files into variable VC10FILES_X86
  Set Variable VC10ERR_X86 to 
  Install/Remove MSI Package $VC10FILES_X86$\vc_runtime_x86.msi[ADDLOCAL=ALL VSEXTUI=1] (get result into variable VC10_X86)
  if Variable VC10_X86 Equals REBOOT
    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 VC10_X86 Equals ERROR
      MessageBox: $TITLE$ Setup, Microsoft Visual C++ Runtime 10.0 could not be installed. Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
      Terminate Installation
    end
  end
end
 
