Skip to content

[BUG] All updates fail when username contains a & #3904

Description

@HaWaKv78

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.3.0

Windows version, edition, and architecture

Windows 10 Home 22h2 x64

Describe your issue

All updates fail when username contains a &

Steps to reproduce the issue

Updated UniGetUI to the latest version and since then I can't install any updates. I get 'C:\Users\Jelle' is not recognized as an internal or external command, while the username is Jelle&Hannes.

Package update operation for Package=Bandisoft.Bandizip with Manager=Winget
Installation options: <InstallOptions instance (only non-default values are shown)
OverridesNextLevelOpts: False>
Overriden options: <Scope=;RunAsAdministrator=;WG_SpecifyVersion=;PS_NoScope=False>
Version: 7.38 -> 7.39
Bewerking starten...
Executing process with StartInfo:

  • FileName: "C:\Program Files\WingetUI\Assets\Utilities\UniGetUI Elevator.exe"
  • Arguments: ""C:\Users\Jelle&Hannes\AppData\Local\Microsoft\WindowsApps\winget.exe" update --id "Bandisoft.Bandizip" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force"
    Start Time: "22/07/2025 13:29:04"
    'C:\Users\Jelle' is not recognized as an internal or external command,
    operable program or batch file.
    Het systeem kan het opgegeven pad niet vinden.
    End Time: "22/07/2025 13:29:07"
    Process return value: "1" (0x1)
    Bandizip kan niet worden bijgewerkt

UniGetUI Log

[22/07/2025 13:23:55]    __  __      _ ______     __  __  ______
                        / / / /___  (_) ____/__  / /_/ / / /  _/
                       / / / / __ \/ / / __/ _ \/ __/ / / // /
                      / /_/ / / / / / /_/ /  __/ /_/ /_/ // /
                      \____/_/ /_/_/\____/\___/\__/\____/___/
                          Welcome to UniGetUI Version 3.3.0
[22/07/2025 13:23:55]
[22/07/2025 13:23:55] Build 96
[22/07/2025 13:23:55] Data directory C:\Users\Jelle&Hannes\AppData\Local\UniGetUI
[22/07/2025 13:23:55] Encoding Code Page set to 850
[22/07/2025 13:23:56] Could not retrieve token (it may not exist): Kan element niet vinden.
                      
                      Referentie kan niet uit de kluis worden opgehaald
[22/07/2025 13:23:56] Loaded language locale: nl
[22/07/2025 13:23:56] Lang files were updated successfully from GitHub
[22/07/2025 13:23:57] Randomly-generated background API auth token: wgqcbk3whmltef3txazrxtq9091zi6g8m2f48x966jvp14mbsyq3d4bx9lgyunuj
[22/07/2025 13:23:57] Api running on http://localhost:7058
[22/07/2025 13:23:58] Call to WhichMultiple with file pwsh.exe returned non-zero status 1
[22/07/2025 13:23:58] Command pwsh.exe was not found on the system
[22/07/2025 13:23:58] Call to WhichMultiple with file npm.ps1 returned non-zero status 1
[22/07/2025 13:23:58] Command npm.ps1 was not found on the system
[22/07/2025 13:23:58] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Npm
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:23:59] Call to WhichMultiple with file scoop.ps1 returned non-zero status 1
[22/07/2025 13:23:59] Command scoop.ps1 was not found on the system
[22/07/2025 13:23:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Scoop
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:23:59] Call to WhichMultiple with file cargo.exe returned non-zero status 1
[22/07/2025 13:23:59] Command cargo.exe was not found on the system
[22/07/2025 13:23:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Cargo
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:23:59] Call to WhichMultiple with file vcpkg.exe returned non-zero status 1
[22/07/2025 13:23:59] Command vcpkg.exe was not found on the system
[22/07/2025 13:23:59] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: .NET Tool
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:00] Call to WhichMultiple with file vcpkg returned non-zero status 1
[22/07/2025 13:24:00] Command vcpkg was not found on the system
[22/07/2025 13:24:00] Call to WhichMultiple with file vcpkg returned non-zero status 1
[22/07/2025 13:24:00] Command vcpkg was not found on the system
[22/07/2025 13:24:00] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: vcpkg
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:00] Call to WhichMultiple with file pwsh.exe returned non-zero status 1
[22/07/2025 13:24:00] Command pwsh.exe was not found on the system
[22/07/2025 13:24:00] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell7
                      █ Enabled: True
                      █ Found: False
                      █ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT 
                      █ INSTALLED OR IT HAS BEEN MISCONFIGURED 
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:01] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Winget
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: winget.exe
                      █ Executable path: C:\Users\Jelle&Hannes\AppData\Local\Microsoft\WindowsApps\winget.exe
                      █ Call arguments: 
                      █ Version: 
                      █   System WinGet CLI Version: v1.11.400
                      █   Using Native WinGet helper (COM Api)
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:02] UniGetUI Chocolatey was found in the path
[22/07/2025 13:24:02] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Pip
                      █ Enabled: False
                      █ THE MANAGER IS DISABLED
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:04] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: Chocolatey
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: choco.exe
                      █ Executable path: C:\Users\Jelle&Hannes\AppData\Local\UniGetUI\Chocolatey\choco.exe
                      █ Call arguments: 
                      █ Version: 
                      █   2.4.2
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:06] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
                      █▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                      █ Name: PowerShell
                      █ Enabled: True
                      █ Found: True
                      █ Fancy exe name: powershell.exe
                      █ Executable path: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      █ Call arguments:  -NoProfile -Command
                      █ Version: 
                      █   Name                           Value                                                                                   
                      █   ----                           -----                                                                                   
                      █   PSVersion                      5.1.19041.6093                                                                          
                      █   PSEdition                      Desktop                                                                                 
                      █   PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
                      █   BuildVersion                   10.0.19041.6093                                                                         
                      █   CLRVersion                     4.0.30319.42000                                                                         
                      █   WSManStackVersion              3.0                                                                                     
                      █   PSRemotingProtocolVersion      2.3                                                                                     
                      █   SerializationVersion           1.1.0.1
                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[22/07/2025 13:24:06] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[22/07/2025 13:24:11] Found 0 installed packages from Chocolatey
[22/07/2025 13:24:13] Found 0 available updates from Chocolatey
[22/07/2025 13:24:15] Downloaded new icons and screenshots successfully!
[22/07/2025 13:24:16] Found 1 installed packages from PowerShell
[22/07/2025 13:24:16] Found 1 installed packages from PowerShell
[22/07/2025 13:24:17] Found 1 available updates from PowerShell
[22/07/2025 13:24:24] Found 279 installed packages from Winget
[22/07/2025 13:24:26] Thread with Id 8604 was assigned as DWM thread
[22/07/2025 13:24:26] DWM Thread was suspended successfully
[22/07/2025 13:24:26] Thread with Id 2976 was assigned as XAML thread
[22/07/2025 13:24:26] XAML Thread was suspended successfully
[22/07/2025 13:24:27] Found 14 available updates from Winget
[22/07/2025 13:26:49] DWM Thread was resumed successfully
[22/07/2025 13:26:49] XAML Thread was resumed successfully
[22/07/2025 13:26:55] Found 0 installed packages from Chocolatey
[22/07/2025 13:26:56] DWM Thread was suspended successfully
[22/07/2025 13:26:56] XAML Thread was suspended successfully
[22/07/2025 13:26:57] Found 279 installed packages from Winget
[22/07/2025 13:26:59] Found 1 installed packages from PowerShell
[22/07/2025 13:28:26] DWM Thread was resumed successfully
[22/07/2025 13:28:26] XAML Thread was resumed successfully
[22/07/2025 13:28:31] Found 0 installed packages from Chocolatey
[22/07/2025 13:28:36] Found 279 installed packages from Winget
[22/07/2025 13:28:36] Found 1 installed packages from PowerShell
[22/07/2025 13:29:03] WinGet package Bandisoft.Bandizip is installed on a system-wide scope, forcing administrator rights...
[22/07/2025 13:29:03] Loaded operation parameters for package id=Bandisoft.Bandizip on manager Winget and operation Update: update --id "Bandisoft.Bandizip" --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force
[22/07/2025 13:29:04] Caching admin rights for process id 664
[22/07/2025 13:29:07] Clearing UAC prompt since there are no remaining operations
[22/07/2025 13:29:07] Resetting administrator rights cache for process id 664

Package Managers Logs

Manager WinGet with version:
System WinGet CLI Version: v1.11.400
Using Native WinGet helper (COM Api)

——————————————————————————————————————————


Logged native task on manager Winget. Task type is ListSources
Process start time: 22/07/2025 13:24:00
Process end time:   22/07/2025 13:24:01

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 22/07/2025 13:24:07
Process end time:   22/07/2025 13:24:24

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Jelle&Hannes\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity "
Process start time: 22/07/2025 13:24:08
Process end time:   22/07/2025 13:24:17

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 22/07/2025 13:24:11
Process end time:   22/07/2025 13:24:22

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 22/07/2025 13:24:17
Process end time:   22/07/2025 13:24:27

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 22/07/2025 13:26:49
Process end time:   22/07/2025 13:26:57

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 22/07/2025 13:26:51
Process end time:   22/07/2025 13:26:55

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 22/07/2025 13:28:27
Process end time:   22/07/2025 13:28:36

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is OtherTask
Process start time: 22/07/2025 13:28:30
Process end time:   22/07/2025 13:28:34

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

I have the option to ask once for admin privileges activated.

Screenshots and videos

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions