-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow upgrades in packages that register a different installer type (#…
…1796) * Modified the applicability check in `InstalledTypeComparator` to also consider the installer types listed under `AppsAndFeaturesEntries` * Extended string returned from `ExplainInapplicable` to also mention the installed type and other types accepted by the manifest. Closes #1242. Validated that upgrading PowerToys (mentioned in that issue) worked correctly using a local manifest edited to include the `AppsAndFeaturesEntries` and installed type `msi`.
- Loading branch information
Chacón
authored
Jan 20, 2022
1 parent
8650938
commit 9dcbf99
Showing
5 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/AppInstallerCLITests/TestData/UpdateFlowTest_Exe_ARPInstallerType.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Similar content to UpdateFlowTest_Exe.yaml, but with an AppsAndFeaturesEntry specifying installer type | ||
PackageIdentifier: AppInstallerCliTest.TestExeInstaller | ||
PackageVersion: 2.0.0.0 | ||
PackageLocale: en-US | ||
PackageName: AppInstaller Test Installer | ||
Publisher: Microsoft Corporation | ||
Moniker: AICLITestExe | ||
License: Test | ||
AppsAndFeaturesEntries: | ||
- InstallerType: msix | ||
InstallerSwitches: | ||
Custom: /custom /ver2.0.0.0 | ||
SilentWithProgress: /silentwithprogress | ||
Silent: /silence | ||
Update: /update | ||
Installers: | ||
- Architecture: x86 | ||
InstallerUrl: https://ThisIsNotUsed | ||
InstallerType: exe | ||
InstallerSha256: 65DB2F2AC2686C7F2FD69D4A4C6683B888DC55BFA20A0E32CA9F838B51689A3B | ||
ManifestType: singleton | ||
ManifestVersion: 1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters