mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-29 18:51:43 +02:00
chore(installer): add RunOnceId to UninstallRun entries
Silences Inno Setup's "missing RunOnceId" warning. Both commands (stop service, remove firewall rule) are already idempotent, so the behavioural effect is nil — this is purely a cleanliness fix to keep the build log warning-free.
This commit is contained in:
@@ -110,11 +110,13 @@ Filename: "netsh.exe"; Parameters: "advfirewall firewall add rule name=""Bambudd
|
||||
Filename: "http://localhost:{#DefaultPort}"; Flags: shellexec postinstall nowait skipifsilent; Description: "Open Bambuddy Dashboard"
|
||||
|
||||
[UninstallRun]
|
||||
; Stop + deregister the service before file removal
|
||||
Filename: "{app}\service\uninstall-service.bat"; Parameters: """{app}"""; Flags: runhidden waituntilterminated
|
||||
; Stop + deregister the service before file removal. RunOnceId makes the
|
||||
; entry run-once per uninstall pass (Inno Setup default is to re-run on
|
||||
; every pass, which can fire multiple times during upgrade flows).
|
||||
Filename: "{app}\service\uninstall-service.bat"; Parameters: """{app}"""; Flags: runhidden waituntilterminated; RunOnceId: "StopBambuddyService"
|
||||
|
||||
; Remove the firewall rule (silently — if it doesn't exist, netsh just complains)
|
||||
Filename: "netsh.exe"; Parameters: "advfirewall firewall delete rule name=""Bambuddy Dashboard"""; Flags: runhidden waituntilterminated
|
||||
Filename: "netsh.exe"; Parameters: "advfirewall firewall delete rule name=""Bambuddy Dashboard"""; Flags: runhidden waituntilterminated; RunOnceId: "RemoveFirewallRule"
|
||||
|
||||
[UninstallDelete]
|
||||
; Remove install dir contents; leave ProgramData\Bambuddy alone so the
|
||||
|
||||
Reference in New Issue
Block a user