Set Variable REGVALUE to 
Set Variable REGVALUE2 to 
Set Variable REGVALUEX64 to 
Set Variable REGVALUE2X64 to 
Set Variable VFPRESULT to TRUE
Set Variable VFPVERSION to TRUE
Set Variable VPFFILEEXIST to 
if Variable X64DETECTED Equals TRUE
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
  Check Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-57989841-343818398-725345543-1003\Products\5C542AD31B324784FB7A82B7D7C6E16F\InstallProperties\DisplayVersion into REGVALUE
  Check Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\5C542AD31B324784FB7A82B7D7C6E16F\InstallProperties\DisplayVersion into REGVALUE2
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
end
Set Variable X64DETECTED to 
Get System Setting Windows in 64 bit Mode into X64DETECTED
if Variable X64DETECTED Equals TRUE
  Get Common Folder Location System->Program Files Directory into COMMONFILES
  Does File Exist $COMMONFILES$System\Ole DB\vfpoledb.dll (get result into variable VPFFILEEXIST)
  if Variable VPFFILEEXIST Equals FALSE
    Set Variable VFP to FALSE
    Set Variable PREREQ to TRUE
    Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft Visual FoxPro OLE DB Provider 9.0
  end
else
  Get Common Folder Location System->Program Files Directory into COMMONFILES
  Does File Exist $COMMONFILES$System\Ole DB\vfpoledb.dll (get result into variable VPFFILEEXIST)
  if Variable VPFFILEEXIST Equals FALSE
    Set Variable VFP to FALSE
    Set Variable PREREQ to TRUE
    Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft Visual FoxPro OLE DB Provider 9.0
  end
end
 
