if Variable DOTNET452_X86X64 Equals FALSE
  Set Variable PROGRESSTEXT to Installing Microsoft .NET Framework 4.52 (x86/x64)
  Set Variable DOTNET452_FILEBAG_X86X64 to 
  Set Variable DOTNET452_RESULT_X86X64 to 
   
  Define File Bag : #IADIR#\runtimes\net452_full\*.*, include files recursively, get runtime location of files into variable DOTNET452_FILEBAG_X86X64
   
  Set Variable PROGRESSTEXT to Installing Microsoft .NET Framework 4.52 (x86/x64)
  Set Variable PROGRESSMODE to MARQUEE
  Run Program $DOTNET452_FILEBAG_X86X64$\setup.exe /x86 /x64 /q /norestart /redist (WAIT, get result into variable DOTNET452_RESULT_X86X64)
  Set Variable PROGRESSMODE to 
  if Variable DOTNET452_RESULT_X86X64 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 DOTNET452_RESULT_X86X64 not Equals 0
      MessageBox: $TITLE$ Setup, Microsoft .NET Framework 4.52 (x86/x64) could not be installed.$NEWLINE$$NEWLINE$Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
      Terminate Installation
    end
  end
   
end
 
