We\'re currently using a GUID to identify the application when running our uninstall script which contains msiexec. The problem I\'m having is the GUID changes every time I
The usual way that people get around the various ProductCode values in this situation is to start with the more constant UpgradeCode.
Given the UpgradeCode, you can use MsiEnumRelatedProducts (or script or MSI interop equivalent) to return the ProductCode. Code like this typically never needs to be changed.
I'm pretty sure PowerShell should be able to do this.