-
Notifications
You must be signed in to change notification settings - Fork 140
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
[Bug]: How do I handle quoting correctly in override mod? #691
Comments
MuseScore doesn't have the SecureCustomProperty If System installs either of them straight up the shortcut installs to: So, not every MSI follows the standard! Have you tried with With It works like this. So, the content of the file $app-override.txt is passed to winget via EDIT: Regarding quotes and escaping; raw, as the receiving installation expect it... |
Thank you for your detailed answer! Is it not necessary to quote the parameter like --override "$ModsOverride"? In the log is following line: Should it not be --override "ALLUSERS=1 APPLICATIONFOLDER=`"C:\Program Files\grepWin`" /qn" instead of: --override ALLUSERS=1 APPLICATIONFOLDER=""C:\Program Files\grepWin"" /qn ? I have tried this lines to install an old version of grepWin (via DOS shell, started as admin): Works: Doesn't work: |
I think winget is a native command in the perspective of Powershell. I will try the TestExe program: |
No, not if you don't have |
Like I wrote: |
This issue is stale because it has been open for 30 days with no activity. |
The problem
I want to specify INSTALLDIR in override. How can I do this with spaces in paths?
Should the whole line in the override mod file be quoted also?
E.g. my content of file: "Microsoft.OpenJDK.11-override.txt" seems to work:
ADDLOCAL=FeatureMain INSTALLDIR=""C:\Program Files\Java\Microsoft\jdk11"" /qn
But I have issues with musescore.
I want to have it installed for all users.
I tried this one:
'ALLUSERS=1 INSTALLDIR=""C:\Program Files\MuseScore"" /qn'.
Id:
Musescore.Musescore
And I have issues with grepWin to have it installed for all users:
Id:
StefansTools.grepWin
I have it installed via:
winget install --id StefansTools.grepWin -e --scope machine --override "ALLUSERS=1"
But with ALLUSERS=1 /qn in StefansTools.grepWin-override.txt it tries to update it for the current user.
How do I handle this correctly?
And how should be the quotes in the override file?
Single quotes?
Double quotes?
Escaped quotes for powershell, like `" or `'?
Escaped quotes for cmd shell like \" or \'?
What version of WAU has the issue?
1.21.2
What version of Windows are you using (ex. Windows 11 22H2)?
Windows 10 22H2 (Build19045.4780)
What version of winget are you using?
v1.8.1911 (system via % $WingetCmd)
Log information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: