refactor: update bundled binary path and add tunnel status polling with retry logic

Change NSIS installer hooks to use bundled/ instead of resources/bundled/ path for tunnel helper executable. Add waitForTunnelStatus helper that polls tunnel status up to 8 times with 500ms intervals to verify expected state after connect/disconnect operations. Update toggle handler to use polling instead of single status check and add error message for failed disconnect operations.
This commit is contained in:
2026-03-18 07:15:54 +01:00
parent fc6969d7fb
commit aef6bf998b
2 changed files with 24 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
!macro NSIS_HOOK_POSTINSTALL
nsExec::ExecToLog '"$INSTDIR\resources\bundled\windows-x64\nexavpn-tunnel-helper.exe" install-service'
nsExec::ExecToLog '"$INSTDIR\bundled\windows-x64\nexavpn-tunnel-helper.exe" install-service'
!macroend
!macro NSIS_HOOK_PREUNINSTALL
nsExec::ExecToLog '"$INSTDIR\resources\bundled\windows-x64\nexavpn-tunnel-helper.exe" uninstall-service'
nsExec::ExecToLog '"$INSTDIR\bundled\windows-x64\nexavpn-tunnel-helper.exe" uninstall-service'
!macroend