You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]winget install open "open file - security warning" requiring user interaction[/-][+]winget install shows "open file - security warning" dialog, requiring user interaction[/+]on Jan 17, 2021
This does not have anything to do with winget. As can be seen in the screenshot the 7zip installer is not properly signed (or can not be validated because you're missing some Root CAs in your certificate store) so Windows intervenes to let you know of the risks of installing potentially harmful software.
Hi, thanks for the quick response. What's really bugging me is that it sometimes just doesn't seem to happen and I couldn't yet figure out why. I just set up a new virtual machine and winget installed 7zip (among many others) without showing the dialog or requiring any user interaction.
If I understand it correctly, Windows flags or remembers downloaded executables which are from the internet (?) to prompt if the publisher can't be verified. If I build an unsigned/untrusted executable locally, it does not show this dialog. So my assumption was that the sporadic occurence might have something to do with winget or could be prevented by it.
Edit: I think I just figured it out: Windows only shows this when the SmartScreen filter for files is disabled. If there's any way to "un-flag" downloaded files I'd be grateful for a tip. Otherwise it currently seems to me that completely automated and silent installations with winget are only possible with SmartScreen enabled.
What are the chances that your systems had different UAC levels configured? On the lowest level UAC does not block the installation of unsigned packages if I remember correctly.
I had both systems with default UAC settings, so that wasn't the culprit. It really looks like SmartScreen influences if the dialog shows up.
The "flag" seems to come from the zone information that is tagged to the file. In my case I can bypass the dialog by using set SEE_MASK_NOZONECHECKS=1. Maybe something that would make sense if it found its way into winget, at least for the silent option. I'll leave this issue open in case a developer wants to consider, otherwise it can be closed.
when trying to uninstall mozilla.firefox even with the --silent command opens the box for the user asking if they want to uninstall or restore, does anyone know how to fix this?
Activity
[-]winget install open "open file - security warning" requiring user interaction[/-][+]winget install shows "open file - security warning" dialog, requiring user interaction[/+]megamorf commentedon Jan 17, 2021
This does not have anything to do with winget. As can be seen in the screenshot the 7zip installer is not properly signed (or can not be validated because you're missing some Root CAs in your certificate store) so Windows intervenes to let you know of the risks of installing potentially harmful software.
Edit:
https://sourceforge.net/p/sevenzip/discussion/45797/thread/bf344d0cd8/
https://sourceforge.net/p/sevenzip/discussion/45797/thread/16bb1a6b/
svenmauch commentedon Jan 18, 2021
Hi, thanks for the quick response. What's really bugging me is that it sometimes just doesn't seem to happen and I couldn't yet figure out why. I just set up a new virtual machine and winget installed 7zip (among many others) without showing the dialog or requiring any user interaction.
If I understand it correctly, Windows flags or remembers downloaded executables which are from the internet (?) to prompt if the publisher can't be verified. If I build an unsigned/untrusted executable locally, it does not show this dialog. So my assumption was that the sporadic occurence might have something to do with winget or could be prevented by it.
Edit: I think I just figured it out: Windows only shows this when the SmartScreen filter for files is disabled. If there's any way to "un-flag" downloaded files I'd be grateful for a tip. Otherwise it currently seems to me that completely automated and silent installations with winget are only possible with SmartScreen enabled.
megamorf commentedon Jan 18, 2021
What are the chances that your systems had different UAC levels configured? On the lowest level UAC does not block the installation of unsigned packages if I remember correctly.
svenmauch commentedon Jan 18, 2021
I had both systems with default UAC settings, so that wasn't the culprit. It really looks like SmartScreen influences if the dialog shows up.
The "flag" seems to come from the zone information that is tagged to the file. In my case I can bypass the dialog by using
set SEE_MASK_NOZONECHECKS=1. Maybe something that would make sense if it found its way into winget, at least for the silent option. I'll leave this issue open in case a developer wants to consider, otherwise it can be closed.denelon commentedon Jan 19, 2021
Recent changes were made to the zone for an installer after it has been downloaded by the Windows Package Manager. https://github.com/microsoft/winget-cli/releases/tag/v0.2.3162-preview
AltieresBatista commentedon Oct 11, 2021
when trying to uninstall mozilla.firefox even with the --silent command opens the box for the user asking if they want to uninstall or restore, does anyone know how to fix this?
denelon commentedon Oct 12, 2021
I think we may have to support the ability to specify "silent" uninstall arguments. That means a schema change.