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

fix(windows-installer): uninstall script behavior #822

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

pendo324
Copy link
Member

@pendo324 pendo324 commented Feb 20, 2024

Issue #, if available:

  • After my recent changes to the uninstall script (which were aimed at making sure Lima was not running and the WSL2 instance was stopped), I tested the new installer, and it still had weird behavior. I noticed that the script would exit immediately if the Lima stop command failed, so I added the & separators. After that, I noticed that the WSL commands would fail immediately. This was because the commands were being executed as a Local install user, instead of the target user. Changing Impersonate to yes should resolve that issue (docs).

Description of changes:

  • Ensure that all commands execute by separating them with & instead of letting failures stop the script
  • Ensure script runs in the user's context by setting Impersonate to yes

Testing done:

  • Local testing

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Justin Alvarez <alvajus@amazon.com>
@pendo324 pendo324 self-assigned this Feb 20, 2024
@pendo324
Copy link
Member Author

Overriding single Windows test flake since this change is not tested by it

@pendo324 pendo324 merged commit ace37ea into runfinch:main Feb 20, 2024
21 of 22 checks passed
mharwani pushed a commit that referenced this pull request Feb 21, 2024
🤖 I have created a release *beep* *boop*
---


## [1.1.2](v1.1.1...v1.1.2)
(2024-02-20)


### Build System or External Dependencies

* **deps:** Bump github.com/docker/docker from 25.0.1+incompatible to
25.0.3+incompatible
([#799](#799))
([d761301](d761301))
* **deps:** Bump github.com/goccy/go-yaml from 1.11.2 to 1.11.3
([#780](#780))
([2e616ff](2e616ff))
* **deps:** Bump github.com/shirou/gopsutil/v3 from 3.23.12 to 3.24.1
([#787](#787))
([55f6d92](55f6d92))
* **deps:** Bump golang.org/x/crypto from 0.18.0 to 0.19.0
([#806](#806))
([3fbc87c](3fbc87c))
* **deps:** Bump golang.org/x/tools from 0.17.0 to 0.18.0
([#807](#807))
([7323751](7323751))
* **deps:** Bump k8s.io/apimachinery from 0.29.1 to 0.29.2
([#820](#820))
([6ca0f7f](6ca0f7f))
* **deps:** Bump submodules and dependencies
([#795](#795))
([ec77f1a](ec77f1a))
* **deps:** Bump submodules and dependencies
([#805](#805))
([0bf9148](0bf9148))


### Bug Fixes

* Correct typo in type name of struct (NerdctlClientOuput)
([#743](#743))
([13de2b9](13de2b9))
* Env variable CONTAINERD_SNAPSHOTTER cleared on overlayfs and ref…
([#816](#816))
([d222a34](d222a34))
* msi release tests cleanup
([#819](#819))
([0f23660](0f23660))
* stop Finch on uninstall
([#818](#818))
([a96788b](a96788b))
* **windows-installer:** add new cleanup script on install
([#824](#824))
([fccfa1d](fccfa1d))
* **windows-installer:** ignore FilesInUse/Restart dialogue
([#823](#823))
([f64835d](f64835d))
* **windows-installer:** uninstall script behavior
([#822](#822))
([ace37ea](ace37ea))


### Reverts

* "always force stop when using Virtualization.framework"
([#370](#370))
([cb3051e](cb3051e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants