Devolutions / Devolutions/UniGetUI

[BUG] WinGet packages not included in backup

Open
#2,749 1 comment 0 reactions 1 assignee Claimed by @marticliment View on GitHub
bug
Dominant language
C#
Stars
26.1k
Forks
924
Avg merge
15h 52m
Merged PRs (30d)
52

Description

EDIT: Needs to be re-tested. I re-ran the backup after restarting UniGetUI, and now it worked.
Could be related to the fact that I downgraded from the preview (3.1.2).

### Please confirm these before moving forward

- [X] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
- [X] I have tested that this issue has not been fixed in the latest [(beta or stable) release](https://github.com/marticliment/WingetUI/releases/).
- [X] I have checked the [FAQ](https://github.com/marticliment/WingetUI#frequently-asked-questions) section for solutions.
- [X] This issue is about a bug (if it is not, please use the [correct template](https://github.com/marticliment/WingetUI/issues/new/choose)).

### UniGetUI Version

3.1.1

### Windows version, edition, and architecture

Windows 11 Pro 23H2 22631.4169

### Describe your issue

When performing backups no packages from WinGet show up in the json file.

### Steps to reproduce the issue

Perform a backup with WinGet packages installed.
Open new backup *.json file, and observe no WinGet packages listed.

### UniGetUI Log

```text
[18-09-2024 01:38:19] __ __ _ ______ __ __ ______
/ / / /___ (_) ____/__ / /_/ / / / _/
/ / / / __ \/ / / __/ _ \/ __/ / / // /
/ /_/ / / / / / /_/ / __/ /_/ /_/ // /
\____/_/ /_/_/\____/\___/\__/\____/___/
Welcome to UniGetUI Version 3.1.1
[18-09-2024 01:38:19]
[18-09-2024 01:38:19] Version Code: 3,11
[18-09-2024 01:38:19] Encoding Code Page set to 437
[18-09-2024 01:38:20] Loaded language locale: en
[18-09-2024 01:38:20] Randomly-generated background API auth token for the current session: bvtj9h6uwr9xyypp3uty16ikdyysfds79iiu5vep5nhnk8unva1lw5zsygxh0oyq
[18-09-2024 01:38:21] Api running on http://localhost:7058
[18-09-2024 01:38:21] Using System GSudo at C:\Program Files\gsudo\Current\gsudo.exe
[18-09-2024 01:38:21] Lang files were updated successfully from GitHub
[18-09-2024 01:38:21] UniGetUI is up to date
[18-09-2024 01:38:21] Downloaded new icons and screenshots successfully!
[18-09-2024 01:38:23] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: .NET Tool
█ Enabled: True
█ Found: True
█ Fancy exe name: dotnet tool
█ Executable path: C:\Program Files\dotnet\dotnet.exe
█ Call arguments: tool
█ Version:
█ 8.0.400
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:23] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Pip
█ Enabled: True
█ Found: True
█ Fancy exe name: pip
█ Executable path: C:\Users\Alf13\AppData\Local\Microsoft\WindowsApps\python.exe
█ Call arguments: -m pip
█ Version:
█ pip 24.0 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip (python 3.11)
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:24] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Winget
█ Enabled: True
█ Found: True
█ Fancy exe name: winget.exe
█ Executable path: C:\Users\Alf13\AppData\Local\Microsoft\WindowsApps\winget.exe
█ Call arguments:
█ Version:
█ System WinGet CLI Version: v1.8.1911
█ Microsoft.WinGet.Client PSModule version: ""
█ Using Native WinGet helper (COM Api)
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:25] Command scoop was not found on the system
[18-09-2024 01:38:25] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Scoop
█ Enabled: True
█ Found: False
█ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT
█ INSTALLED OR IT HAS BEEN MISCONFIGURED
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:25] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Npm
█ Enabled: True
█ Found: True
█ Fancy exe name: npm
█ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█ Call arguments: -NoProfile -ExecutionPolicy Bypass -Command npm
█ Version:
█ 10.5.0
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:25] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Chocolatey
█ Enabled: True
█ Found: True
█ Fancy exe name: choco.exe
█ Executable path: C:\Users\Alf13\AppData\Local\UniGetUI\Chocolatey\choco.exe
█ Call arguments:
█ Version:
█ 2.2.2
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:26] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: PowerShell7
█ Enabled: True
█ Found: True
█ Fancy exe name: pwsh.exe
█ Executable path: C:\Program Files\PowerShell\7\pwsh.exe
█ Call arguments: -NoProfile -Command
█ Version:
█ PowerShell 7.4.5
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:28] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ 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.22621.4111
█ PSEdition Desktop
█ PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
█ BuildVersion 10.0.22621.4111
█ CLRVersion 4.0.30319.42000
█ WSManStackVersion 3.0
█ PSRemotingProtocolVersion 2.3
█ SerializationVersion 1.1.0.1
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[18-09-2024 01:38:29] Resetting administrator rights cache for process id 37024
[18-09-2024 01:38:29] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[18-09-2024 01:38:29] Dependency WinGet PowerShell Module for manager Winget is present
[18-09-2024 01:38:31] Dependency .NET Tools Outdated for manager .NET Tool is present
[18-09-2024 01:38:31] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[18-09-2024 01:38:32] Found 16 installed packages from Pip
[18-09-2024 01:38:32] Found 0 installed packages from Chocolatey
[18-09-2024 01:38:32] Found 0 available updates from Chocolatey
[18-09-2024 01:38:33] Found 0 available updates from .NET Tool
[18-09-2024 01:38:35] Found 0 available updates from Pip
[18-09-2024 01:38:35] Found 1 installed packages from .NET Tool
[18-09-2024 01:38:38] Found 1 installed packages from PowerShell
[18-09-2024 01:38:38] Found 2 installed packages from PowerShell7
[18-09-2024 01:38:39] Backup saved to C:\Users\Alf13\OneDrive\UniGetUI\MARTYNDESKTOP installed packages.json
[18-09-2024 01:38:40] Found 0 available updates from Npm
[18-09-2024 01:38:40] Found 2 installed packages from Npm
[18-09-2024 01:38:41] Found 0 available updates from PowerShell
[18-09-2024 01:38:42] Found 343 installed packages from Winget
[18-09-2024 01:38:42] Found 7 available updates from Winget
[18-09-2024 01:38:44] Found 0 available updates from PowerShell7
[18-09-2024 01:38:44] Non-MSStore WinGet Native Icons have been forcefully disabled on code
[18-09-2024 01:38:44] Icon for package Parallels.Parallels was not found, returning default icon
[18-09-2024 01:38:47] Resetting administrator rights cache for process id 37024
[18-09-2024 01:43:36] Found 1 installed packages from .NET Tool
[18-09-2024 01:43:37] Found 16 installed packages from Pip
[18-09-2024 01:43:37] Found 0 installed packages from Chocolatey
[18-09-2024 01:43:39] Found 2 installed packages from PowerShell7
[18-09-2024 01:43:41] Found 1 installed packages from PowerShell
[18-09-2024 01:43:42] Found 2 installed packages from Npm
[18-09-2024 01:43:43] Found 343 installed packages from Winget
```

### Package Managers Logs

```text
Manager WinGet with version:
System WinGet CLI Version: v1.8.1911
Microsoft.WinGet.Client PSModule version: ""
Using Native WinGet helper (COM Api)

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

Logged native task on manager Winget. Task type is ListSources
Process start time: 18-09-2024 01:38:24
Process end time: 18-09-2024 01:38:24

-- Task information
...

The task reported success

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

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\Alf13\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 18-09-2024 01:38:28
Process end time: 18-09-2024 01:38:31

-- Process STDOUT
...

Return code: SUCCESS (0)

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 18-09-2024 01:38:28
Process end time: 18-09-2024 01:38:42

-- Task information
...

The task reported success

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

Logged native task on manager Winget. Task type is ListSources
Process start time: 18-09-2024 01:38:29
Process end time: 18-09-2024 01:38:29

-- Task information
...

The task reported success

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

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 18-09-2024 01:38:32
Process end time: 18-09-2024 01:38:42

-- Task information
...

The task reported success

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

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 18-09-2024 01:43:34
Process end time: 18-09-2024 01:43:43

-- Task information
...

The task reported success

——————————————————————————————————————————
```

### Relevant information

_No response_

### Screenshots and videos

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.