Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 missing from windows 11 (10.0.22000.65) #1426

Closed
BladeFireLight opened this issue Sep 2, 2021 · 48 comments
Closed

winget missing from windows 11 (10.0.22000.65) #1426

BladeFireLight opened this issue Sep 2, 2021 · 48 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author
Milestone

Comments

@BladeFireLight
Copy link

multiple sorces and a few people in the insiders at work show off winget on windows 11.

I just installed the current dev and it's not present. will winget make it into the final of win11?

@ghost ghost added the Needs-Triage Issue need to be triaged label Sep 2, 2021
@jedieaston
Copy link
Contributor

Try opening the Microsoft Store and checking for updates. Also, the current build number is 10.0.22000.168, so you probably need to run Windows Update.

@BladeFireLight
Copy link
Author

I am in the beta channel.. no updates showing for windows.

store updates all done and no winget

@jedieaston
Copy link
Contributor

Ah, the beta channel. I wonder if you have to be in dev to get winget?

@BladeFireLight
Copy link
Author

I do not believe so. my co workers around me all got it. and I did not.

@jedieaston
Copy link
Contributor

Can you look in your App Execution Aliases and see if it appears there?

These instructions should work: https://www.windowscentral.com/how-manage-app-execution-aliases-windows-10

Also, what edition of Windows are you on? Shouldn't matter, but just to be sure...

@BladeFireLight
Copy link
Author

I do not see it in the aliases list.

edition says Windows 11 Enterprise

@denelon
Copy link
Contributor

denelon commented Sep 2, 2021

The "App Installer" from the store should include the Windows Package Manager on all versions of Windows 11. It didn't make it into the initial Windows 11 install, but an update should be available for all Windows Insider builds.

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Sep 2, 2021
@BladeFireLight
Copy link
Author

image
I have installed all updates and so see an app installer winstore app and now the aliases have app insaller pointing to python and python3

still no winget from the command line
image

@jedieaston
Copy link
Contributor

Do you have any pending updates in the Microsoft Store?

@BladeFireLight
Copy link
Author

nope

@denelon
Copy link
Contributor

denelon commented Sep 3, 2021

Are you logged on with a user account that has admin rights on the machine?

Is it the same user account that installed the Windows Package Manager?

@BladeFireLight
Copy link
Author

Yes and yes

@denelon
Copy link
Contributor

denelon commented Sep 3, 2021

Thanks, I've contacted a couple of other internal teams to see what other steps we can take to troubleshoot what might be happening. I'd like to isolate whether the problem is related to the Windows Package Manager, MSIX installation, or something else. I haven't been able to reproduce this in any of my environments yet.

@BladeFireLight
Copy link
Author

could it be something as simple as a missing Path entry?

@jedieaston
Copy link
Contributor

It could be.

Can you see if there is a winget.exe file in %LOCALAPPDATA\Microsoft\WindowsApps?

@BladeFireLight
Copy link
Author

file not found.

@erayrafet
Copy link

I have the exact same issue with the latest Win 11 beta.

image
image

@jedieaston
Copy link
Contributor

@erayrafet Can you post the output of $env:PATH from PowerShell?

@erayrafet
Copy link

Here:
image

@erayrafet Can you post the output of $env:PATH from PowerShell?

@denelon
Copy link
Contributor

denelon commented Sep 10, 2021

I see what appears to be a missing semicolon after "\WindowsApps" before the "C:Users\erayr\NexusTools".

@jedieaston
Copy link
Contributor

jedieaston commented Sep 10, 2021

That's odd.

@erayrafet, can you search in the start menu for "Edit environment variables for your account", then in the panel that opens, highlight the "Path" entry, click edit and send a screenshot of it? I'm wondering if those strings are actually stuck together or there's something funny going on with PowerShell. I don't know how that could've happened though.

Here's mine for reference:
image

@erayrafet
Copy link

That's odd.

@erayrafet, can you search in the start menu for "Edit environment variables for your account", then in the panel that opens, highlight the "Path" entry, click edit and send a screenshot of it? I'm wondering if those strings are actually stuck together or there's something funny going on with PowerShell. I don't know how that could've happened though.

Here's mine for reference:
image

image

@erayrafet
Copy link

By edditing the env paths, I was able to fix the problem. Kudos to you, @jedieaston!
image
image

@BladeFireLight
Copy link
Author

lucky you.
my path is good
image
but the files are missing
image
image

@jedieaston
Copy link
Contributor

jedieaston commented Sep 11, 2021

Okay, so I just confirmed it is not a fluke. Fresh install of Windows 11 Insider Preview (22454):
image

Interestingly, it also has the old Microsoft Store installed.

Edit: The Microsoft Store picked up like 20 updates after a few minutes and winget is now installed after an App Installer update. Is it not going to be in the RTM ISO? (I know that it hasn't been released yet but if we're going to have to run the Microsoft Store before winget works on clean installs of Windows 11 that'll be super lame.)

@erayrafet
Copy link

Okay, so I just confirmed it is not a fluke. Fresh install of Windows 11 Insider Preview (22454):
image

Interestingly, it also has the old Microsoft Store installed.

Edit: The Microsoft Store picked up like 20 updates after a few minutes and winget is now installed after an App Installer update. Is it not going to be in the RTM ISO (I know that it hasn't been released yet but if we're going to have to run the Microsoft Store before winget works on clean installs of Windows 11 that'll be super lame).

Indeed. I had done a clean install too.

@nascentt
Copy link

Not sure if the same issue or not, but winget report 2 entries and therefore fails to upgrade.

Python 3                              Python.Python.3                 3.9.5150.0  3.9.7150.0  winget
winget upgrade python.python.3
Multiple installed packages found matching input criteria. Please refine the input.
Name                  Id
------------------------------------------------------------
Python 3              Python.Python.3
Python 3.9.5 (32-bit) {708847ae-c2de-49fb-9b85-8d2e9c991358}

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Oct 1, 2021
@denelon denelon added this to the v1.2-Client milestone Oct 1, 2021
@aminya
Copy link

aminya commented Oct 7, 2021

Still no winget.

In this comment, it was mentioned that

One of the initial goals is to make sure the Windows Package Manager works on earlier versions of Windows without a PowerShell dependency. That is one of the primary reasons this is a .exe and written in C++.

If this is a C++ executable, why is it so hard to install and put it on the path?

@jedieaston
Copy link
Contributor

Because it's packaged with the App Installer as a UWP app, which does other stuff.

They just pushed it to the stable ring, have you seen anything in the Microsoft Store in the last day or so?

@aminya
Copy link

aminya commented Oct 7, 2021

I updated the Microsoft package, but I still didn't get winget in my shell. I found this note in the troubleshooting.

The App Installer did not automatically add the PATH environment variable. You should add the path environment variable. The value to add is "%userprofile%\AppData\Local\Microsoft\WindowsApps".

Adding that path to my PATH finally fixes the problem. Not sure why it was not added automatically!

image

@jedieaston
Copy link
Contributor

That's weird. It's good that you got it working though!

@denelon
Copy link
Contributor

denelon commented Oct 7, 2021

@aminya I'm glad you got it working as well. We've had a few cases where other programs modified the path entry, but nothing solid enough to completely isolate it so we can make the fix.

@franklesniak
Copy link

Is there a way to synchronously install App Installer? If not, there needs to be!

With winget not being available immediately out of the box in Windows 11, I don't see sysadmins adopting it because they won't be able to use it during OS deployment, autopilot, etc.

In the absence of winget being included in the ISO for Windows 11, we need a process like:

  1. Install OS
  2. Run some command(s) to install App Installer. The command is synchronous (it waits until App Installer is installed and returns an error code if it fails to install)
  3. Assume it's safe to call winget

More discussion: https://twitter.com/FrankLesniak/status/1448294637941280774?s=20

@ghost ghost added the No-Recent-Activity Issue has no recent activity label Nov 3, 2021
@ghost
Copy link

ghost commented Nov 3, 2021

@BladeFireLight this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@franklesniak
Copy link

Keeping the party going by mentioning that I posted to Feedback Hub: https://aka.ms/AAe2dpu

@ghost ghost removed the No-Recent-Activity Issue has no recent activity label Nov 3, 2021
@denelon
Copy link
Contributor

denelon commented Nov 3, 2021

The Windows Package Manager should be in an automatic update delivered by the Microsoft Store on Windows 11. It was not included in the base image for the initial release. If Group Policy or other settings are blocking the Microsoft Store, this could affect a user's ability to use the Microsoft Store UI to request the update.

@jedieaston
Copy link
Contributor

@franklesniak the best solution might be for you to write some PowerShell to pull the latest release from GitHub, install it, and then run whatever commands you want with winget. It'll still catch updates from the Microsoft Store, but since there's no way to tell the Microsoft Store to run updates and get a response when they are done, it's probably the best solution for now.

@franklesniak
Copy link

Indeed - thank you both. After I posted last night, I saw another post that said the Windows Store would detect and update App Installer even if someone installed App Installer via Github (https://twitter.com/FrankLesniak/status/1455747254027948032?s=20). I haven't tried this myself, but it sounds like a good path forward.

@ghost ghost added the No-Recent-Activity Issue has no recent activity label Nov 11, 2021
@ghost
Copy link

ghost commented Nov 11, 2021

@BladeFireLight this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@GethDeeo
Copy link

@jedieaston sorry to hijack this issue, but I'm doing something similar and I have questions: #1691
Provisioning ran just fine, but on first boot the snippet

Write-Host (Get-Date)
while (!(Get-Command -Name winget -ErrorAction SilentlyContinue)) {
  Start-Sleep 5
}
Write-Host (Get-Date)

produces the second timestamp ~15 minutes later (and there is really no winget.exe in %LOCALAPPDATA%\Microsoft\WindowsApps during that time). After that, winget is fully functional in the same ps session.
What is happening in that 15 minutes? Can it be sped up?

@ghost ghost removed the No-Recent-Activity Issue has no recent activity label Nov 21, 2021
@denelon
Copy link
Contributor

denelon commented Nov 22, 2021

@GethDeeo this isn't likely to change before the next servicing release for Windows 11. We have work scheduled to be included in the base image for the next release.

@microsoft microsoft locked and limited conversation to collaborators Nov 22, 2021
@denelon denelon closed this as completed Nov 22, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author
Projects
Development

No branches or pull requests

8 participants