microsoft/winget-cli

Add MSI UpgradeCode to manifest

denelon opened this issue · 3 comments

MSI Installer UpgradeCode

MSI Installers have an UpgradeCode to help with package upgrades:
[Using an UpgradeCode]https://docs.microsoft.com/en-us/windows/win32/msi/using-an-upgradecode)

How about from #1073:

ProgramsAndFeaturesEntries:
  - Name: Foo
    Publisher: Contoso
    Version: 1.2.3
    ProductCode: "{AAAAA-AAAAA-AAAAA-AAAAA-AAAAA}"
    UpgradeCode: "{ABAAA-ABAAA-ABAAA-ABAAA-ABAAA}"
  - Name: FooService
    Publisher: Contoso
    Version: 2.3.4
    ProductCode: "{BBBBB-BBBBB-BBBBB-BBBBB-BBBBB}"
    UpgradeCode: "{BCBBB-BCBBB-BCBBB-BCBBB-BCBBB}"

"UpgradeCode": {
"$ref": "#/definitions/ProductCode"
},

The remaining work on this feature is to have the Windows Package Manager client leverage the MSI UpgradeCode.