-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Avoid adding a new windows firewall exemption every time an application is updated #1052
Comments
@peters Are you using the latest version of Squirrel.Windows and launching via the execution stubs? I want to confirm the current Best Practice approach doesn't work. If not, Plan 2 might work, or we can try: 3 - Explicitly add |
@paulcbetts Yes, I'm using the latest version. Tested on Windows 10 Pro/Enterprise (Anniversary / Creators Update). Firewall occur just after the
How about the following (Mix of plan 2 and 3):
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="app-X.X.X;any;sections;copied;from;existing;exec;config" />
</assemblyBinding>
</runtime>
</configuration> Caveats:
This is a lot of work though 😢
|
Any new developments on getting this fixed? |
Nobody is working on this afaik, if you have any good ideas / insider info on how to convince the Firewall that our app is The Same App, we'd definitely take a PR to fix this bug |
Just curious if there are any updates to this ticket? Any known workarounds for the Firewall prompt on every update? Thanks! |
Any progress or updates to report? |
We are still stuck on this issue. @shiftkey Can you take a look at this please? |
Do we have a solution for this yet? |
Any update on this? |
@peters I also facing this issue. did you able to fix this ? |
@Rambarani I don't this this is fixed. Microsoft Teams fixed this by creating a |
This has been fixed in my Squirrel fork (tracked in clowd#24) by following a similar approach to how msft teams did it with their proprietary fork. This solved loads of issues, tray icon pinning, firewall rules, gpu affinity, taskbar pinned shortcuts, etc. It will be released in v3.0 (eta early June). |
Thanks @SultanaJon |
Thanks @caesay |
The problem is that every time an application is updated, the user has to add (accept) a new firewall exemption. This is probably fine for most users, but this application is running in a unattended mode (Corporate 💵 ).
I have two ideas on how we can get around this "limitation". Upon first install an exemption will have to be accepted by the user (Windows default prompt anyways):
1 - Host the CLR inside a stub executable and load the target application into memory. This would be a opt-in feature during releasify and only work for managed applications.
2 - Use .exe.config trickery rewriting the DLL load path (only works for managed dlls), modify environment "PATH" variable to include "app-X.X.X" (native dlls) and set current directory to "app-X.X.X" (I have yet to confirm this would work as expected, but I imagine so 🤞 )
@paulcbetts What are your thoughts on the matter? Am I´m overthinking this? Feedback appreciated 🍻
The text was updated successfully, but these errors were encountered: