Closed Kroji closed 5 months ago
I compiled a local version of this tool repository at hash fdef9e4 and I still get issues like this. I have come to the conclusion that it is because the CustomParameters
option incorrectly escapes specific characters. Such as if you have a quote in the CustomParameters
installation option it will print it in the JSON file as \u0022
instead of \"
like it should, but another workaround is to double escape the initial backslash before the u0022
and that should make it work.
EDIT: Upon further testing it would appear that even single quotes '
are affected as well. On-top of that, I have tested and apparently custom parameters don't always get passed to the winget executable. So I made a new issue for that at #2262
It does seem to work properly for me...
Can you tell me which package are you using and the custom parameters used?
I am using MariaDB.Server
as the package and the custom parameters as INSTALLDIR="C:\Program Files\MariaDB"
Hello @thakyZ, the parameters you passed seem to work fine on the said package. I can store them and read them from disk without any issues.
Could you please try again the latest head?
Please confirm these before moving forward
Describe your issue
Hi, I'm having problems when editing installation options for some of my packages.
I wanted to have all of them as interactively installed/updated. But while testing some configuration changes, eventually the installation options UI stopped working (apparently I was still able to change options, but when clicking "Save and Close" they are not saved and revert to defaults).
I tried the following on a fresh installation:
7zip.7zip
in my case).After step 4 any tried option change is not saved, and a exception appears in the log (see the "WingetUI Log").
As far as I can see, there may be an issue in the way the installation options are saved in
.wingetui
folder. It seems installation options for a specific package are stored in a file located in.wingetui/InstallationOptions/Winget.[package_id].json
.This is the content of my
.wingetui/InstallationOptions/Winget.7zip.7zip.json
when I perform step 3:This is the file's content on step 4:
Note the extra
}
at the end, seems the app is overwriting the file's content on save instead of actually change/replace it, which causes file corruption and future reading errors.Found on latest WingetUI 3.0.2.
Steps to reproduce the issue
WingetUI Log
Package Managers Logs
Relevant information
No response
Screenshots and videos
No response