I have code to retrieve the Major versions of a product. Declared a property as PRODVER_MAJOR = 2
Code is as follows:
function myfunction(hMSI)
string svmajorversion;
number nsize;
begin
nsize = 256;
MsiGetProperty (ISMSI_HANDLE, "PRODVER_MAJOR", svmajorversion, nsize);
MessageBox ("MajorVersion:" +svmajorversion, INFORMATION);
end