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

Uninstallation Fails Due to Dependencies #2

Open
osamaalassiry opened this issue Jun 11, 2024 · 0 comments
Open

Uninstallation Fails Due to Dependencies #2

osamaalassiry opened this issue Jun 11, 2024 · 0 comments

Comments

@osamaalassiry
Copy link
Owner

Issue Title: Uninstallation Fails Due to Dependencies

Description:

When running the choco2winget.ps1 script, the uninstallation of a Chocolatey package fails if the package has dependencies that are not being uninstalled. This prevents the script from proceeding to the Winget installation step.

Steps to Reproduce:

  1. Run the choco2winget.ps1 script.
  2. When prompted, confirm the uninstallation and reinstallation of a package that has dependencies in Chocolatey.

Expected Behavior:

The script should be able to handle the situation where a package has dependencies. It could prompt the user to confirm the uninstallation of the dependencies, or it could automatically uninstall the dependencies.

Actual Behavior:

The script fails to uninstall the package from Chocolatey when the package has dependencies, and it does not proceed to the Winget installation step.

Additional Context:

This issue can lead to packages being left installed in Chocolatey, preventing the migration to Winget.

Possible Solution:

Modify the script to handle the case where a package has dependencies in Chocolatey. This could involve prompting the user to confirm the uninstallation of the dependencies, or automatically uninstalling the dependencies.

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

No branches or pull requests

1 participant