Open hspindel opened 4 days ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
This is an issue that needs to be filed on the UniGetUI repo, as it is not an issue with the WinGet CLI.
This is an issue that needs to be filed on the UniGetUI repo, as it is not an issue with the WinGet CLI.
Not sure about that. The log clearly states that it is WinGet CLI that can't be executed.
Yes, but as stated, this has nothing to do with winget itself. In fact, the fact that it says that it couldn't execute winget proves this, as winget hasn't even had a chance to DO anything yet. Something on your machine is busted, permissions-wise, or UniGet has a bug in how it tries to execute winget.
Yes, but as stated, this has nothing to do with winget itself. In fact, the fact that it says that it couldn't execute winget proves this, as winget hasn't even had a chance to DO anything yet. Something on your machine is busted, permissions-wise, or UniGet has a bug in how it tries to execute winget.
It has everything to do with winget. No matter how many times I try to reinstall it and no matter how many guides I try to follow winget always reports access denied. Yes, I agree something is busted with permissions, but I need a pointer to fix that.
Are you able to execute winget commands normally from the terminal without WingetUtil?
Does something like winget -v
/ winget list
work for you in the terminal?
Are you able to execute winget commands normally from the terminal without WingetUtil?
Does something like
winget -v
/winget list
work for you in the terminal?
Attempting winget with any parameters always yields "access is denied."
Can you try re-installing WinGet from https://aka.ms/getwinget and check again?
Attempting winget with any parameters always yields "access is denied."
Well, that is a completely different issue than "UniGetUI doesn't see any updates". That would be "WinGet always yields access is denied".
Have you tried re-installing WinGet or updating to the latest version? What version do you have installed ( Get-AppxPackage *AppInstaller*
)? Are there any logs you can share from WinGet directly (%localappdata%/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe/DiagOuptuDir/LocalState
)?
Thank you for the reply.
Have you tried re-installing WinGet or updating to the latest version? What version do you have installed (
Get-AppxPackage *AppInstaller*
)? Are there any logs you can share from WinGet directly (%localappdata%/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe/DiagOuptuDir/LocalState
)?
Reinstalling WinGet doesn't help (multiple tries).
Get-AppxPackage "AppInstaller" reports:
Name : Microsoft.DesktopAppInstaller
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 1.23.1791.0
PackageFullName : Microsoft.DesktopAppInstaller_1.23.1791.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1791.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
Dependencies : {Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64__8wekyb3d8bbwe,
Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe,
Microsoft.DesktopAppInstaller_1.23.1791.0_neutral_split.scale-100_8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
`
There is no folder named DiagOutputDir (or anything similar) under %localappdata%/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
Can you try re-installing WinGet from https://aka.ms/getwinget and check again?
* Related: [ResourceUnavailable: Program 'winget.exe' failed to run: An error occurred trying to start process. Access is denied.At line:1 char:1 #3057](https://github.com/microsoft/winget-cli/issues/3057)
Thank you, but it doesn't work.
There is no folder named DiagOutputDir (or anything similar) under %localappdata%/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
Ah, my bad; Is there one called LocalState
?
Ah, my bad; Is there one called
LocalState
?
No problem. Yes, there is LocalState. It has eleven log files in it. The two most recent are attached.
@marticliment, let me know if this is something that should go to UniGetUI or how we can help figure out what's going on here. 😊
@hspindel do you get any results if you run winget --info
? If you do, can you share them?
@marticliment, let me know if this is something that should go to UniGetUI or how we can help figure out what's going on here. 😊
I have seen a similar bug report on UniGetUI, but, as said previously, I can't help from UniGetUI.
The way in which the winget.exe is called is from a standard System.Diagnostics.Process instance, without anything weird going on.
My best guess is a misconfiguration with system permissions, since the only change I have done is calling the system winget.exe instead of the bundled winget.exe WingetUI used to use.
The relevant issue on UniGetUI is https://github.com/marticliment/UniGetUI/issues/2444
@marticliment, let The way in which the winget.exe is called is from a standard System.Diagnostics.Process instance, without anything weird going on.
My best guess is a misconfiguration with system permissions, since the only change I have done is calling the system winget.exe instead of the bundled winget.exe WingetUI used to use.
Is there any way we can get a config option for UniGetUI to call the bundled winget it used to use? When I try that winget.exe from a command line, it successfully reports a version number instead of "access is denied" with the new version.
@hspindel do you get any results if you run
winget --info
? If you do, can you share them?
I get "access is denied" if I run winget from a command line. However, if I use the winget.exe that came bundled with UniGetUI from a command line it works.
D:\Program Files\UniGetUI\winget-cli_x64>winget --info
Windows Package Manager v1.8.1791
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.4529
System Architecture: X64
Winget Directories
---------------------------------------------------------------------------------------------------
Logs %TEMP%\WinGet\defaultState
User Settings %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
D:\Program Files\UniGetUI\winget-cli_x64>
@marticliment, let The way in which the winget.exe is called is from a standard System.Diagnostics.Process instance, without anything weird going on.
My best guess is a misconfiguration with system permissions, since the only change I have done is calling the system winget.exe instead of the bundled winget.exe WingetUI used to use.
Is there any way we can get a config option for UniGetUI to call the bundled winget it used to use? When I try that winget.exe from a command line, it successfully reports a version number instead of "access is denied" with the new version.
If you add the UniGetUI bundled winget to path and temporarily remove system winget from path (you can do so from settings) you should be able to test this
@marticliment
If you add the UniGetUI bundled winget to path and temporarily remove system winget from path (you can do so from settings) you should be able to test this
This turned out to be more of an adventure than I expected. Documenting here in case it helps someone else.
Eventual solution that works:
Brief description of your issue
WinGetUI updated to UniGetUI. Previously WinGetUI reported numerous updates available.
Package sources include .NET Tool, Chocolatey and PowerShell. Same as WinGetUI used to show.
Probably key log entry:
[7/5/2024 5:12:03 PM] Could not initialize Package Manager Winget [7/5/2024 5:12:03 PM] System.ComponentModel.Win32Exception (5): An error occurred trying to start process 'C:\Users\howard\AppData\Local\Microsoft\WindowsApps\winget.exe' with working directory 'D:\Program Files\UniGetUI'. Access is denied. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.LoadManager() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 495 at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.InitializeAsync() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 76
Steps to reproduce
Just run UniGetUI.
Expected behavior
List of updateable programs provided.
Actual behavior
UniGetUI says all programs up-to-date.
Environment