Skip to content

Provisioned winget, winget.exe available only after some time #1691

Answered by GethDeeo
GethDeeo asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I've worked around the issue.
At first boot, I re-register Desktop Installer from the the provisioned appx install location with this snippet:
(Get-AppxProvisionedPackage -Online -LogLevel Warnings | Where-Object -Property DisplayName -EQ Microsoft.DesktopAppInstaller).InstallLocation -replace '%SYSTEMDRIVE%', $env:SystemDrive | Add-AppxPackage -Register -DisableDevelopmentMode

The InstallLocation property erroneously contains the string %SYSTEMDRIVE% unexpanded. Updating apps via Store corrects it, but the whole idea was not to depend on Store :)
After the command completes, winget is there and working.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@GethDeeo
Comment options

Comment options

You must be logged in to vote
1 reply
@NickSlash
Comment options

Answer selected by GethDeeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants