diff --git a/desktop-client/src-tauri/windows/hooks.nsh b/desktop-client/src-tauri/windows/hooks.nsh index 187510d..ba9dd4e 100644 --- a/desktop-client/src-tauri/windows/hooks.nsh +++ b/desktop-client/src-tauri/windows/hooks.nsh @@ -1,7 +1,15 @@ +!macro NSIS_HOOK_PREINSTALL + nsExec::ExecToLog 'sc stop "WireGuardTunnel$NexaVPN"' + nsExec::ExecToLog '"$SYSDIR\\taskkill.exe" /F /IM nexavpn-desktop.exe' + nsExec::ExecToLog '"$SYSDIR\\taskkill.exe" /F /IM nexavpn-tunnel-helper.exe' + nsExec::ExecToLog 'sc stop NexaVPNTunnelService' +!macroend + !macro NSIS_HOOK_POSTINSTALL nsExec::ExecToLog '"$INSTDIR\bundled\windows-x64\nexavpn-tunnel-helper.exe" install-service' !macroend !macro NSIS_HOOK_PREUNINSTALL + nsExec::ExecToLog 'sc stop "WireGuardTunnel$NexaVPN"' nsExec::ExecToLog '"$INSTDIR\bundled\windows-x64\nexavpn-tunnel-helper.exe" uninstall-service' !macroend