Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation for Portable Uninstall and Upgrade #2140

Merged
merged 26 commits into from May 14, 2022

Conversation

ryfu-msft
Copy link
Contributor

@ryfu-msft ryfu-msft commented May 5, 2022

Related to:

This PR adds the implementation for supporting the uninstall and upgrade scenario for the portable installerType:

Changes:

  • Rearranges the write to registry order so that if the upgrade scenario fails, the existing registry values are preserved.
  • Adds the uninstall flow so that the uninstall flow removes the appropriate installed files related to the portable.
  • Adds cleanup functionality to the install flow if install fails.
  • Adds support for --purge and --preserve

Tests:

  • Added unit tests to workflow for update and uninstall
  • Added E2E tests for upgrade with the uninstallPrevious upgrade behavior
  • Added E2E tests for uninstall as well as incorporating uninstall in the cleanup process for install tests
Microsoft Reviewers: Open in CodeFlow

@ryfu-msft ryfu-msft requested a review from as a code owner May 5, 2022
@ryfu-msft ryfu-msft marked this pull request as draft May 5, 2022
src/AppInstallerRepositoryCore/Microsoft/ARPHelper.h Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/PortableFlow.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/PortableFlow.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/UninstallFlow.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/WorkflowBase.cpp Outdated Show resolved Hide resolved
@ryfu-msft ryfu-msft marked this pull request as ready for review May 11, 2022
src/AppInstallerCLICore/Workflows/PortableFlow.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/PortableFlow.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/Workflows/PortableFlow.cpp Outdated Show resolved Hide resolved
@ryfu-msft
Copy link
Contributor Author

@ryfu-msft ryfu-msft commented May 12, 2022

/azp run

@azure-pipelines
Copy link

@azure-pipelines azure-pipelines bot commented May 12, 2022

Azure Pipelines successfully started running 1 pipeline(s).

@ryfu-msft ryfu-msft merged commit 4df817b into microsoft:master May 14, 2022
6 checks passed
@ryfu-msft ryfu-msft deleted the uninstallFlow branch May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants