conda / constructor

tool for creating installers from conda packages
https://conda.github.io/constructor/
Other
452 stars 166 forks source link

Unistaller does not remove the MS Windows Registry key for Uninstalling #768

Open hsparra opened 3 months ago

hsparra commented 3 months ago

Checklist

What happened?

The Windows uninstaller created by Constructor when creating a custom installer is not removing the Registry key for uninstalling. This results in the Miniconda application showing up in the MS Windows --> Control Panel --> Programs and Features panel. Each time that a new version of the Miniconda installer is installed/uninstalled, an additional shadow is left in the MS Windows Registry.

a minimal spec portion from constructor.yaml:

keep_pkgs: false

specs:
- anaconda-client 1.12.*
- conda 24.1.2
- conda-build 24.1.2
- conda-repo-cli 1.0.*
- conda-verify 3.4.*
- console_shortcut_miniconda 0.1.*
- menuinst 2.0.*
- powershell_shortcut_miniconda 0.0.*
- python 3.11.*

A manual cleanup of the Registry key entry is required Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*conda* | Remove-Item -Force

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

marcoesters commented 3 months ago

I am unable to reproduce this. I created an installer with these specs on Windows 11 using constructor 3.6.0 and 3.7.0.

Could you provide the following information?

hsparra commented 3 months ago

We are working at isolating which environmental factors are impacting the problem. We have some environments where the issue does not occur.