From f323ac5243a9f73548eff3f21fa062369bb41893 Mon Sep 17 00:00:00 2001 From: luisangelsm Date: Fri, 6 Mar 2026 21:34:30 +0100 Subject: [PATCH] Add a rule for the firewall automatically on windows. --- ci/win/build_installer_qt6.iss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/win/build_installer_qt6.iss b/ci/win/build_installer_qt6.iss index 06930e90..c7194210 100644 --- a/ci/win/build_installer_qt6.iss +++ b/ci/win/build_installer_qt6.iss @@ -118,10 +118,14 @@ LaunchYACReader=Start YACreader after finishing installation Filename: {tmp}\vc_redist.{#PLATFORM}.exe; \ Parameters: "/install /quiet /norestart"; \ StatusMsg: "Installing VC++ Redistributables..." +Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""YACReaderLibrary"" dir=in action=allow program=""{app}\YACReaderLibrary.exe"" enable=yes profile=private,domain"; Flags: runhidden waituntilterminated Filename: {app}\{cm:AppLibrary}.exe; Description: {cm:LaunchYACReaderLibrary,{cm:AppLibrary}}; Flags: nowait postinstall skipifsilent Filename: {app}\{cm:App}.exe; Description: {cm:LaunchYACReader,{cm:App}}; Flags: nowait postinstall skipifsilent +[UninstallRun] +Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall delete rule name=""YACReaderLibrary"""; Flags: runhidden waituntilterminated + [Icons] Name: {group}\YACReader; Filename: {app}\YACReader.exe; WorkingDir: {app}; IconIndex: 0 Name: {group}\YACReader Library; Filename: {app}\YACReaderLibrary.exe; WorkingDir: {app}; IconIndex: 0