Set Variable ISWINDOWS64BIT to FALSE
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals TRUE
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
  Set Variable DOTNET20SP2_X64 to TRUE
  Comment: Check for 50727 version
  Read Registry Key HKLM\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727\SP into DOTNET20SP2_REGISTRY_X64
  if Variable DOTNET20SP2_REGISTRY_X64 Greater Than 1
    Set Variable DOTNET20SP2_X64 to TRUE
  else
    Set Variable DOTNET20SP2_X64 to FALSE
  end
  if Variable DOTNET20SP2_X64 Equals FALSE
    Set Variable PREREQ to TRUE
    Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft .NET Framework 2.0 Service Pack 2 (x64)
  end
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
else
  MessageBox: $TITLE$ Setup, $TITLE$ requires a 64 bit operating system. Please upgrade your operating system and try again.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
  Terminate Installation
end
 
