I have an application installed on my machine. I also have its source code but somehow the ProductCode and UpgradeCode of this application were changed.
You can use the MsiEnumProductsEx and MsiGetProductInfoEx methods to enumerate all the installed applications on your system and match the data to your application