Following Dan's suggestion on the Feature requests forum I have a simple Custom executable to determine the Total amount of Ram on a target machine;
Code: Select all
Module Module1
Sub Main()
GetRamAmount()
End Sub
Public Function GetRamAmount() As Integer
Dim mem As Long = CLng(New Microsoft.VisualBasic.Devices.ComputerInfo().TotalPhysicalMemory)
If mem > 50000000 Then
Return 0
Else
Return 1
End If
End Function
End ModuleActually I think in reality that I should return 1 in the first path ensuring failure and hence installation. This does beg one more question though if I may, Are pre requisites evaluated (and installed)in the order in which they are added to the pre requisites page. So in my case if I want to condition the installation of 64 bit sql that should be looked at first, and if that fails to install then it will fall back to the 32 bit version (which I would also have as a prerequisite).
Dom
FOLLOW US
Get the latest news in Application Packaging