How can I find the upgrade code for an installed application in C#?
问题 I am using the C# wrapper for the Windows Installer API from the WIX Toolset. I use the ProductInstallation class to get information about the installed products such as the product code and product name. For example Product Name - "My Test Application" Product Code - {F46BA620-C027-4E68-9069-5D5D4E1FF30A} Product Version - 1.4.0 Internally this wrapper uses the MsiGetProductInfo function. Unfortunately this function does not return the product's upgrade code. How can I retrieve the upgrade