22 lines
703 B
NSIS
22 lines
703 B
NSIS
; Tauri document: https://v2.tauri.app/distribute/windows-installer/#customizing-the-nsis-installer
|
|
; NSIS Document: https://nsis.sourceforge.io/Docs/Chapter4.html
|
|
|
|
; Uninstall paw-system-service if it exists
|
|
!macro NSIS_HOOK_PREINSTALL
|
|
IfFileExists "$INSTDIR\paw-uninstall-service.exe" 0 skip_uninstall
|
|
DetailPrint "Uninstalling previous service..."
|
|
ExecWait '"$INSTDIR\paw-uninstall-service.exe"'
|
|
Sleep 2000
|
|
skip_uninstall:
|
|
!macroend
|
|
|
|
; Install paw-system-service
|
|
!macro NSIS_HOOK_POSTINSTALL
|
|
Exec '"$INSTDIR\paw-install-service.exe"'
|
|
!macroend
|
|
|
|
; Uninstall paw-system-service
|
|
!macro NSIS_HOOK_PREUNINSTALL
|
|
Exec '"$INSTDIR\paw-uninstall-service.exe"'
|
|
!macroend
|