Skip to content

Commit

Permalink
Silent uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay authored Jul 20, 2022
1 parent fa871c8 commit 37589e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build/nsis/customize.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ RequestExecutionLevel admin
!macro customRemoveFiles

DetailPrint "Uninstalling supervisor service..."
nsExec::ExecToStack '"$INSTDIR\resources\app.asar.unpacked\node_modules\@mysteriumnetwork\node\bin\win\x64\myst_supervisor.exe" --uninstall'
Pop $0
Pop $1
${ifNot} $0 == 0
MessageBox MB_OK `Supervisor service uninstall failed (error $0).$\r$\n$\r$\n$1`
${endif}

nsExec::Exec '"$INSTDIR\resources\app.asar.unpacked\node_modules\@mysteriumnetwork\node\bin\win\x64\myst_supervisor.exe" --uninstall'
RMDir /r $INSTDIR
!macroend

0 comments on commit 37589e6

Please sign in to comment.