-
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.
Skip uninstall attempt when installed package version is not present (#…
…4685) ## Issue We are seeing crashes from the installed package version being null, but only during upgrades with a dependency when attempting to uninstall said dependency (either due to user request or manifest). ## Change Simply exit the two workflow tasks involved with the uninstall if the installed package version is not present.
- Loading branch information
Showing
6 changed files
with
90 additions
and
1 deletion.
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
18 changes: 18 additions & 0 deletions
18
src/AppInstallerCLIE2ETests/TestData/Manifests/TestUpgradeAddsDependency.1.0.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,18 @@ | ||
PackageIdentifier: AppInstallerTest.TestUpgradeAddsDependency | ||
PackageVersion: 1.0 | ||
PackageName: TestUpgradeAddsDependency | ||
PackageLocale: en-US | ||
Publisher: Microsoft | ||
License: Test | ||
ShortDescription: E2E test for adding a new package dependency during an upgrade. | ||
Installers: | ||
- Architecture: x86 | ||
InstallerUrl: https://localhost:5001/TestKit/AppInstallerTestExeInstaller/AppInstallerTestExeInstaller.exe | ||
InstallerType: exe | ||
InstallerSha256: <EXEHASH> | ||
ProductCode: '{fda6c0e2-0977-482f-bda1-9bd025457b81}' | ||
InstallerSwitches: | ||
Custom: '/ProductID {fda6c0e2-0977-482f-bda1-9bd025457b81}' | ||
InstallLocation: /InstallDir <INSTALLPATH> | ||
ManifestType: singleton | ||
ManifestVersion: 1.4.0 |
21 changes: 21 additions & 0 deletions
21
src/AppInstallerCLIE2ETests/TestData/Manifests/TestUpgradeAddsDependency.2.0.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,21 @@ | ||
PackageIdentifier: AppInstallerTest.TestUpgradeAddsDependency | ||
PackageVersion: 2.0 | ||
PackageName: TestUpgradeAddsDependency | ||
PackageLocale: en-US | ||
Publisher: Microsoft | ||
License: Test | ||
ShortDescription: E2E test for adding a new package dependency during an upgrade. | ||
Installers: | ||
- Architecture: x86 | ||
InstallerUrl: https://localhost:5001/TestKit/AppInstallerTestExeInstaller/AppInstallerTestExeInstaller.exe | ||
InstallerType: exe | ||
InstallerSha256: <EXEHASH> | ||
ProductCode: '{fda6c0e2-0977-482f-bda1-9bd025457b81}' | ||
InstallerSwitches: | ||
Custom: '/ProductID {fda6c0e2-0977-482f-bda1-9bd025457b81}' | ||
InstallLocation: /InstallDir <INSTALLPATH> | ||
Dependencies: | ||
PackageDependencies: | ||
- PackageIdentifier: AppInstallerTest.TestUpgradeAddsDependencyDependent | ||
ManifestType: singleton | ||
ManifestVersion: 1.4.0 |
19 changes: 19 additions & 0 deletions
19
src/AppInstallerCLIE2ETests/TestData/Manifests/TestUpgradeAddsDependencyDependent.1.0.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,19 @@ | ||
PackageIdentifier: AppInstallerTest.TestUpgradeAddsDependencyDependent | ||
PackageVersion: 1.0 | ||
PackageName: TestUpgradeAddsDependencyDependent | ||
PackageLocale: en-US | ||
Publisher: Microsoft | ||
License: Test | ||
ShortDescription: E2E test for adding a new package dependency during an upgrade. | ||
Installers: | ||
- Architecture: x86 | ||
InstallerUrl: https://localhost:5001/TestKit/AppInstallerTestExeInstaller/AppInstallerTestExeInstaller.exe | ||
InstallerType: exe | ||
InstallerSha256: <EXEHASH> | ||
UpgradeBehavior: uninstallPrevious | ||
ProductCode: '{648274a3-17aa-4731-8bf1-5854ca61e475}' | ||
InstallerSwitches: | ||
Custom: '/ProductID {648274a3-17aa-4731-8bf1-5854ca61e475}' | ||
InstallLocation: /InstallDir <INSTALLPATH> | ||
ManifestType: singleton | ||
ManifestVersion: 1.4.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