Stop AWG/WG service after uninstall (#738)

* Stop AWG service after uninstall
* Close Amnezia-service executable after install
* Close Amnezia application with service
This commit is contained in:
Mykola Baibuz 2024-04-14 14:08:14 +01:00 committed by GitHub
parent 030b0351a2
commit f588fe29db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 4 deletions

View file

@ -88,8 +88,9 @@ Component.prototype.createOperations = function()
component.addElevatedOperation("Execute",
["sc", "create", serviceName(), "binpath=", pu_path + serviceName() + ".exe",
"start=", "auto", "depend=", "BFE/nsi"],
"UNDOEXECUTE", "cmd", "/c", pu_path + "post_uninstall.cmd");
"UNDOEXECUTE", "cmd", "/c", pu_path + "post_uninstall.cmd");
component.addElevatedOperation("Execute", "cmd", "/c", pu_path + "post_install.cmd");
} else if (runningOnMacOS()) {
component.addElevatedOperation("Execute", "@TargetDir@/post_install.sh", "UNDOEXECUTE", "@TargetDir@/post_uninstall.sh");
} else if (runningOnLinux()) {