I was trying to use windows api to find out the version info of an installed application.
I used the upgrade code to find out the product code using MsiEnumRelatedProduc
Application.ProductVersion works for me, no need to call WinAPI manually (I am still in .Net 1.1 though)