-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Uninstalling portable package fails with code 0x80070490 (Possibly due to not handling file path encoding correctly) #4853
Comments
|
@Natr1x we're about to cut our first WinGet 1.9 Release Candidate build. When that is available, I'll try to remember to check in to see if this issue is resolved. |
Brief description of your issue
When installing
Ninja-build.Ninja
on a new computer I accidentally did so without symlinks. So I was going to uninstall it in order to reinstall it with symlinks enabled. Which go me the following error message:After checking the logs I suspect that the issue may be due to an encoding issue with the path to the installed executable.
The last part of it looks like this (I have removed parts of my username but not all of it since I suspect it to be the main culprit):
So as you can see it complains about not being able to find
C:\Users\Söder\AppData\Local\Microsoft\WinGet\Packages\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe\ninja.exe
. The file does however exist (if you correct the encoding issue).The entry in the sqlite database also does not seem to be faulty (or at least sqlite3.exe handles the encoding correctly):
Steps to reproduce
(I do not have the ability to test this with any user account except for my own)
winget install Ninja-build.Ninja
winget uninstall Ninja-build.Ninja
Expected behavior
Ninja-build.Ninja to be uninstalled.
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: