Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

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

Nguyen Ngoc Minh9ea081576be8
diff --git a/src-tauri/tauri.bundle.windows.nsis.template b/src-tauri/tauri.bundle.windows.nsis.template
index 45ccf4fc3..2f6453a42 100644
--- a/src-tauri/tauri.bundle.windows.nsis.template
+++ b/src-tauri/tauri.bundle.windows.nsis.template
@@ -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