fix: custom tauri nsis template CheckIfAppIsRunning macro (#5840)

* fix: update CheckIfAppIsRunning macro to include args
This commit is contained in:
Nguyen Ngoc Minh 2025-07-21 06:54:06 -07:00 committed by GitHub
parent 275cab7538
commit 9ea081576b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -623,7 +623,7 @@ Section Install
!insertmacro NSIS_HOOK_PREINSTALL
!endif
!insertmacro CheckIfAppIsRunning
!insertmacro CheckIfAppIsRunning "${MAINBINARYNAME}.exe" "${PRODUCTNAME}"
; Copy main executable
File "${MAINBINARYSRCPATH}"
@ -750,7 +750,7 @@ Section Uninstall
!insertmacro NSIS_HOOK_PREUNINSTALL
!endif
!insertmacro CheckIfAppIsRunning
!insertmacro CheckIfAppIsRunning "${MAINBINARYNAME}.exe" "${PRODUCTNAME}"
; Delete the app directory and its content from disk
; Copy main executable