Skip to content

Uninstallation Fails Due to Dependencies #2

Description

@osamaalassiry

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions