-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Winget - The process has no package identity. At line:1 char:1 #1370
Comments
@jlapchuk Would you mind filing a FeedBack hub issue? This will get us a logs. Initially it sounds like winget is not installed correctly. |
Ok, I just submitted it through feedback hub. I've tried remove App Installer and reinstalling again, but that doesn't fix the issue. |
@jlapchuk have you updated the microsoft store that worked for me |
Yeah, I tried that, even tried removing and reinstalling the Microsoft Store app using PowerShell, but still no luck. |
@jlapchuk what version of App Installer do you have? |
Do you have the App Execution Alias enabled? |
@denelon thanks for asking. I does not look familiar to issues I have reported. eventually remote related to #640 ? @jlapchuk can describe if you have installed the winget appx from github manually? |
@Karl-WE I signed up for Windows Package Manager Insider program (http://aka.ms/winget-InsiderProgram). I ran the command in the email (ms-windows-store://pdp/?productid=9nblggh4nns1) and logged in to the Microsoft Store using the same account that received the invitation email. The account I'm logged in as in Windows, is a local admin on the system, and UAC is enabled. The only other account on the system, is my secondary Admin account I use to manage other resources on our domain. The system is joined to my company's on-prem AD and not AAD joined. |
Thanks for the quick reply. Despite it is still said enrollment to the insider program is not necessary. Please run the appx from winget github using an account that has local admin rights. winget might work correctly on this account. Currently the usage on Windows device having more than one local user profile might give a bit of headache. setup, Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle: if you have any PowerShell or instances of Windows Terminal open including VSC or ISE please close them before running the msix. Does it work now? Mind that outside the Insider program you might need update the msix manually. |
So, I should switch to logging in to Windows using my personal Microsoft account? Not using my company AD login, correct? |
@jlapchuk If I'm understanding what @Karl-WE suggested, you need to make sure the account you're logged into Windows with is also a local administrator on the machine. The only impact of an MSA account is related to which version the MSIX for the App Installer is going to be delivered from the Microsoft Store. If your MSA is logged into the Microsoft Store and it's part of the insiders program, then you will get the version with the Windows Package Manager. In either case, if you install the one from the GitHub Releases here it will have the Windows Package Manager. The version you reported above does indeed contain the Windows Package Manager. That's also why the App Execution Alias was available for you to toggle. I'd really love to get to the bottom of this one. I've been having a very hard time reproducing this on my end to make sure we can fix it and write tests to ensure it doesn't get broken again. I'm not sure if it's an issue with the MSIX registration from the store, or if it has something to do with the accounts on the machine. MSIX packages get registered for the user that was logged into the machine, which is why I believe the local admin question came up. Hopefully this all gets cleared up when the App Installer including the Windows Package Manager is default for all Windows 10 (1809+) builds. |
Yes
|
Gotcha. Yeah, the account I'm logged into Windows with (my AD login), is a local admin on the machine, and it's the account that installs the MSIX bundle I downloaded from the release page on Github. It's under this account where I get the errors referring to 'package identity.' I'll try logging in to my system as my personal Microsoft account, and try reinstalling the MSIX bundle again that way. |
@jlapchuk in this case try to follow Demetrius instructions first before following mine @denelon I believe the problem is the store itself. As noted in different issue the Store has a lasting problem to update apps in the background. There are dozends of items in the feedback hub. I am still investigating if this is solved with Windows 11. But the issue on W10 exist since 1803 minimum. |
I was able to resolve my issue and get winget running, though, I'm not exactly sure of root cause, I think it had something to do with permissions on the Microsoft.DesktopInstaller folders in C:\Program Files\WindowsApps. Everything looked OK, but I discovered whenever I tried to delete them, I'd get 'Access Denied', even though I'm a local admin on the system. I was able to take full ownership by running
And viola! :) |
Just a heads up, you aren't supposed to have r/w permissions on the WindowsApps folder or it's contents. It's managed by TrustedInstaller through the Windows Store and things like PowerShell or system settings app |
We've flighted the latest 1.1 candidate: https://github.com/microsoft/winget-cli/releases/tag/v1.1.12653 We have also updated our troubleshooting guide. I'm going to go ahead and close this issue since it appears this issue is resolved. |
Brief description of your issue
When attempting to run winget in Powershell, I receive the following error:
Environment
The text was updated successfully, but these errors were encountered: