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.
If anyone wants to get installed application package code, just execute below command with your application name in the command prompt. You will be getting product code along with package code.
wmic product where "Name like '%YOUR_APPLICATION_NAME%'" get IdentifyingNumber, PackageCode