Skip to content

[BUG] Non-Silent choco un-installs hanging #2716

Closed

Description

@riedel

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

3.1.1

Windows version, edition, and architecture

Win 11 Pro Version 10.0.22631 Build 22631

Describe your issue

Uninstall may not be silent (could not detect). Proceed?([Y]es/[[N]o]): Timeout or your choice of '' is not a valid selection. You must select an answer

Steps to reproduce the issue

Uninstalling firefox

UniGetUI Log

[09.09.2024 10:12:39] Caching admin rights for process id 1664
[09.09.2024 10:12:57] Resetting administrator rights cache for process id 1664
[09.09.2024 10:14:23] Loaded icon with URL=UniGetUI.Core.IconEngine.CacheableIcon for package Id=Firefox
[09.09.2024 10:14:23] Caching admin rights for process id 1664
[09.09.2024 10:14:23] Icon for package Firefox stored on C:\Users\riedel\AppData\Local\UniGetUI\CachedMedia\Chocolatey\Firefox.svg

Package Managers Logs

Chocolatey v2.3.0
Uninstalling the following packages:
Firefox
Firefox v129.0.2
0
Firefox has been uninstalled.
WARNING: Auto Uninstaller may detect Mozilla Maintenance Service.
WARNING: This should not be uninstalled if any other Mozilla product is installed.
Running auto uninstaller...
Skipping auto uninstaller - 'Mozilla Firefox (x64 de)' appears to have been uninstalled already by other means.
Did you know licensed versions of Chocolatey are 95% effective with
Automatic Uninstaller due to licensed enhancements and Package
Synchronizer?
For the question below, you have 30 seconds to make a selection.
Uninstall may not be silent (could not detect). Proceed?([Y]es/[[N]o]):
Timeout or your choice of '' is not a valid selection.
You must select an answer

Relevant information

No response

Screenshots and videos

No response

Activity

  1. added
    bug
    on Sep 9, 2024
  2. changed the title [-][BUG] Non-Silent un-installs hanging[/-] [+][BUG] Non-Silent choco un-installs hanging[/+] on Sep 9, 2024
  3. added a commit that references this issue on Feb 10, 2025
    19f7130
  4. removed this from the Bugs milestone on Mar 1, 2025
  5. lemon-sundae commented on Jul 16, 2025

    @lemon-sundae

    This issue still exists for me. I cannot install any packages with chocolatey in uniget with the error
    Timeout or your choice of '�?' is not a valid selection.
    Chocolatey works properly in cli as I can confirm the installation.
    Do I have to do some extra settings to solve this problem or is it simply a bug?

  6. marticliment commented on Jul 16, 2025

    @marticliment
    Collaborator

    This issue still exists for me. I cannot install any packages with chocolatey in uniget with the error
    Timeout or your choice of '�?' is not a valid selection.
    Chocolatey works properly in cli as I can confirm the installation.
    Do I have to do some extra settings to solve this problem or is it simply a bug?

    Which version of UniGetUI are you using? Ccan you please share full logs of output?

  7. lemon-sundae commented on Jul 16, 2025

    @lemon-sundae

    Which version of UniGetUI are you using? Ccan you please share full logs of output?

    I am using UniGetUI 3.2.0, and I've also tried the latest pre-version, which behaves the same.

    Take mpv as an example:

    Package install operation for Package=mpv with Manager=Chocolatey
    Installation options: <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
    Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
    Executing process with StartInfo:
     - FileName: "C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\choco.exe"
     - Arguments: "install mpv -y --no-progress"
    Start Time: "2025/7/16 20:42:54"
    Chocolatey v2.4.3
    Chocolatey detected you are not running from an elevated command shell
     (cmd/powershell).
     You may experience errors - many functions/packages
     require admin rights. Only advanced users should run choco w/out an
     elevated shell. When you open the command shell, you should ensure
     that you do so with "Run as Administrator" selected. If you are
     attempting to use Chocolatey in a non-administrator setting, you
     must select a different location other than the default install
     location. See
     https://docs.chocolatey.org/en-us/choco/setup#non-administrative-install
     for details.
    For the question below, you have 20 seconds to make a selection.
     Do you want to continue?([Y]es/[N]o): 
    Timeout or your choice of '�?' is not a valid selection.
    Installing the following packages:
    mpv
    By installing, you accept licenses for the packages.
    Downloading package from source 'https://community.chocolatey.org/api/v2/'
    mpvio.install v0.39.0 [Approved]
    mpvio.install package files install completed. Performing other installation steps.
    Extracting 64-bit C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\mpv-0.39.0-x86_64_x64.7z to C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools...
    C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools
    Extracting C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\rossy.zip to C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools...
    C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools
    WARNING: May not be able to find 'cmd.exe'. Please use full path for executables.
    ERROR: Running ["cmd.exe" /K C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\mpv-install.bat /u] was not successful. Exit code was '1'. See log for possible error messages.
    The install of mpvio.install was NOT successful.
    Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    Failed to install mpv because a previous dependency failed.
    Chocolatey installed 0/2 packages. 2 packages failed.
     See the log for details (C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\logs\chocolatey.log).
    Failures
     - mpv - Failed to install mpv because a previous dependency failed.
     - mpvio.install (exited 1) - Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    End Time: "2025/7/16 20:43:22"
    Process return value: "1" (0x1)
    
  8. marticliment commented on Jul 16, 2025

    @marticliment
    Collaborator

    Chocolatey is not crashing because of the input thing. It is crashing because of this:

    ERROR: Running ["cmd.exe" /K C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\mpv-install.bat /u] was not successful. Exit code was '1'. See log for possible error messages.
    The install of mpvio.install was NOT successful.
    Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    Failed to install mpv because a previous dependency failed.
    Chocolatey installed 0/2 packages. 2 packages failed.
     See the log for details (C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\logs\chocolatey.log).
    Failures
     - mpv - Failed to install mpv because a previous dependency failed.
     - mpvio.install (exited 1) - Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    
    
  9. lemon-sundae commented on Jul 16, 2025

    @lemon-sundae

    Chocolatey is not crashing because of the input thing. It is crashing because of this:

    ERROR: Running ["cmd.exe" /K C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\mpv-install.bat /u] was not successful. Exit code was '1'. See log for possible error messages.
    The install of mpvio.install was NOT successful.
    Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    Failed to install mpv because a previous dependency failed.
    Chocolatey installed 0/2 packages. 2 packages failed.
     See the log for details (C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\logs\chocolatey.log).
    Failures
     - mpv - Failed to install mpv because a previous dependency failed.
     - mpvio.install (exited 1) - Error while running 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpvio.install\tools\chocolateyinstall.ps1'.
     See log for details.
    

    Not quite clear what this means but if I use choco in powershell7 it can complete the install successfully with no errors. What can I do then?

  10. marticliment commented on Jul 16, 2025

    @marticliment
    Collaborator

    on command prompt does the command C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\choco.exe install mpv -y --no-progress also work?

  11. lemon-sundae commented on Jul 16, 2025

    @lemon-sundae

    Yes

    C:\Users\lemon>C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\choco.exe install mpv -y --no-progress
    Chocolatey v2.4.3
    Installing the following packages:
    mpv
    By installing, you accept licenses for the packages.
    Downloading package from source 'https://community.chocolatey.org/api/v2/'
    
    mpv v2024.9.26 [Approved]
    mpv package files install completed. Performing other installation steps.
     The install of mpv was successful.
      Deployed to 'C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\lib\mpv'
    
    Chocolatey installed 1/1 packages.
     See the log for details (C:\Users\lemon\AppData\Local\UniGetUI\Chocolatey\logs\chocolatey.log).
    
  12. marticliment commented on Jul 16, 2025

    @marticliment
    Collaborator

    I will investigate

  13. lemon-sundae commented on Jul 16, 2025

    @lemon-sundae

    I've found out the solution. Turn on the Unicode(Beta) feature in Windows locale settings and choco can work correctly with UnigetUI. My Windows is not English.

  14. lemon-sundae commented on Jul 18, 2025

    @lemon-sundae

    I wonder if this can be fixed since this Unicode(Beta) feature may prevent some applications from operating properly. I'd say this is only a temporary work around.

  15. marticliment commented on Jul 18, 2025

    @marticliment
    Collaborator

    Windows is (slowly) transitioning to Unicode. at some point, it will be always unicode enabled. Nevertheless, I will see what I can do

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

Metadata

Metadata

Labels

bugchocolateyready-to-go

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions