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

Test CI on the uninstaller fixes #696

Merged
merged 3 commits into from
Jul 13, 2023
Merged

Test CI on the uninstaller fixes #696

merged 3 commits into from
Jul 13, 2023

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Jul 13, 2023

Description

This branch, contributed by @marcoesters, will prevent Windows uninstallers from deleting directories that do not correspond to the original installation.

Originally reported at ContinuumIO/anaconda-issues#11726

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

* Only run uninstaller on directory with _conda.exe

* Do not run uninstaller in system-critical directories

* Add loop to check for minimum conda files

* Add missing goto after passing all checks

* Add push/pop operations to un.onInit

* Fix typo

* Use WordFind instead of UnStrTok

* Start WordFind loop with 1

* Add additional files to check for conda

* Add confirmation dialog before uninstalling

* Resolve INSTDIR

* Add exceptions to fill_template

* Do not replace NSIS predefines

* Add example template

* Update constructor/nsis/main.nsi.tmpl

Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>

* Add check for GetFullPathName

* Add additional directory checks for uninstaller

* Add quotes to INSTDIR in uninstaller message

* Add check to GetFullPathName

* Add additional directory checks for uninstaller

* Add check to GetFullPathName for uninstaller

* Remove duplicate comment

* Replace missing global variable with local variable

* Fix INSTDIR path resolution command

* Fix GetFullPathName logic

* Replace @name@ with ${NAME}

---------

Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 13, 2023
@jaimergp jaimergp mentioned this pull request Jul 13, 2023
31 tasks
@jaimergp jaimergp marked this pull request as ready for review July 13, 2023 10:16
@jaimergp jaimergp requested a review from a team as a code owner July 13, 2023 10:16
@jaimergp jaimergp merged commit bc0d653 into main Jul 13, 2023
15 checks passed
@jaimergp jaimergp deleted the uninstaller-fixes branch July 13, 2023 10:29
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jul 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants