Repository navigation
Closed
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Milestone
Description
Brief description of your issue
winget install wingetcreate fails
Steps to reproduce
not really sure. All i did was run winget install wingetcreate
Found Windows Package Manager Manifest Creator [Microsoft.WingetCreate]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
██████████████████████████████ 96%
Install failed: An internal error occurred with error 0x800700B7. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
0x800700b7 : Cannot create a file when that file already exists.
Expected behavior
it didn't fail.
Actual behavior
it failed.
💖❯ winget install wingetcreate
Found Windows Package Manager Manifest Creator [Microsoft.WingetCreate]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
██████████████████████████████ 96%
Install failed: An internal error occurred with error 0x800700B7. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
0x800700b7 : Cannot create a file when that file already exists.
💖❯ Get-Command wingetcreate
Get-Command : The term 'wingetcreate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Command wingetcreate
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (wingetcreate:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
Environment
Windows Package Manager Manifest Creator version? (wingetcreate.exe -?)
n/a
Any other software?
Windows 10 Build 21390.1
Metadata
Metadata
Assignees
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Type
Projects
- StatusShow more project fieldsDone
Activity
denelon commentedon Jun 3, 2021
Alice Knag (@AskAlice) can you share the output from
winget --info. I'm wondering what version of the client you have.iDolmatov commentedon Jun 3, 2021
What about similar commands?
winget list --id wingetcreate
winget upgrade wingetcreate
winget uninstall wingetcreate
denelon commentedon Jun 3, 2021
Долматов Алексей (@iDolmatov)
winget listdoesn't support "filtering" by manifest metadata yet. There is a feature on the backlog.iDolmatov commentedon Jun 3, 2021
If the application is missing or removed, then this is how:
denelon commentedon Jun 3, 2021
Долматов Алексей (@iDolmatov) I stand corrected and very happy!
I think the team may have forgotten to update the status on the feature 😃. I'll go double check and update if it's complete.
AskAlice commentedon Jun 3, 2021
denelon commentedon Jun 3, 2021
Alice Knag (@AskAlice) OK, so you are on the current version. What do you get from
winget list wingetcreate? On my machine with the tool installed, I see:1 remaining item
AskAlice commentedon Jun 3, 2021
hopefully
C:\BA\311\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:168you can find the source for in private microsoft repos, or maybe theC:\BA\311\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(50)It is possible some of the ACLs in my microsoft store package folders are messed up. Regardless this is an unhelpful error as I can't figure out where in the filesystem it's failing. I was hoping winget would have circumvented all of the ridiculousness that is UWP and microsoft store, I guess I was wrong.
Perhaps there is a way of using process hacker to figure out the last file it tries to access before it hits this fault?
denelon commentedon Jun 4, 2021
Alice Knag (@AskAlice) thank you so much for the logs! I'll share this with both teams to see if we can figure out what is happening. Can you download and double-click the wingetcreate installer from the GitHub release page, or di you get the same error?
AskAlice commentedon Jun 4, 2021
The MSIX fails,

and the binary runs here but fails due to deps
palenshus commentedon Jun 4, 2021
Thanks! Regarding running the exe directly, you do need to have the .NET 5 runtime installed. Per microsoft/winget-create#38 we do plan to release another standalone exe which is entirely self-contained. In the meantime you should be able to install .NET to get unblocked.
Hopefully your MSIX install issue will be figured out soon too!
AskAlice commentedon Jun 4, 2021
Yeah i got the .net 5 and it works directly.
The MSIX issue has been plaguing my windows install for some time. I realize this may not be an issue with winget-cli directly, but rather the AppInstallerCommonCore or AppInstallerCLICore, which are not open source to my knowledge. I have considered reinstalling but I would love to have this fixed. I have tried using a SYSTEM elevated shell to run icacls to reset the ACLs on certain microsoft store package directories with little success. If the error told me which file it failed to edit that would be super useful.
Guiorgy commentedon Jun 5, 2021
Tried manually updating .Net 5 (as Windows update was failing with
0x80070643), and still no luck.A subsequent reboot of Windows solved the issue!
AskAlice commentedon Jun 5, 2021
my issue persists through reboots
It doesn't happen with every package, i suspect only those that are appxpackages internally.
running
winget upgradeshows a list of upgradeable packages for me.Guiorgy commentedon Jun 6, 2021
Alice Knag (@AskAlice), I did manually update to the latest .Net 5 SDK, Desktop Runtime, and Runtime before rebooting ¯\(ツ)/¯
AskAlice commentedon Jun 6, 2021
I'm already on it
adamsmith34 commentedon Jun 15, 2021
Was getting
0x800700b7 : Cannot create a file when that file already exists.when issuingwinget listorwinget upgrade. Applied 21H1, rebooted. Resolved.AskAlice commentedon Jun 19, 2021
I'm on the latest insider dev channel build so I can't easily switch over there lol :(
denelon commentedon Oct 1, 2021
Alice Knag (@AskAlice)
We've published the v1.1 release candidate and updated our troubleshooting guide. We've also got a new release for the Windows Package Manager Manifest Creator https://github.com/microsoft/winget-create/releases/tag/v0.4.1.1-preview.
Can you confirm if this is still happening?