-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add custom arguments for app installation #19
Conversation
@Romanitho |
As system via SCCM (as an example): In Windows\Temp\WinGet the logs is ok in creation "WinGet-2022-04-12-14-24-27.012.log" etc.. ..but it never creates "WinGet-ultrapico.expresso.3.1.7917-2022-04-12-14-21-04.585.log" or the associated directory for download. |
Can you post the command line you try to run please ? |
Nothing fancy, just an ordinary single install as above. |
Have you tried this : |
I'm not using options, just "-AppIDs ultrapico.expresso -Uninstall -WAUWhiteList" |
I will not have time to troubleshoot tonight, but I need to double check what was added and why it fails. |
The thing is, with old way, I can't get --override working |
Edit : it works for me without touching anything. |
on my lab, install and uninstall work with this version. |
This is the only way it's working for me:
|
With Start-Process --override should work too. |
No, we need ro figure it out. You might not be the only one |
Well, I can't make sense of it, tested many things. |
The thing is, it's arguments in arguments |
I'll test some AppaArgs out with Start-Process out and let you know my findings tomorrow at work. |
Could you give me a hard example? |
Yes. I was thinking about that. Put winget argument in a dedicated argument instead of having it inside the AppID argument. Make more sense |
I'm on my phone now, but in the issues we have différents cases you can test |
Me to.. ..I'll take a look then tomorrow |
You can now push customs arguments with this change:
powershell.exe -Executionpolicy Bypass -File winget-install.ps1 -AppIDs "7zip.7zip --version 21.06"
and for multiple apps at once:
powershell.exe -Executionpolicy Bypass -Command .\winget-install.ps1 -AppIDs '7zip.7zip --version 21.06','Notepad++.Notepad++ --version 8.3.1 --override "/S"'