mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:43:44 +08:00
fix: installer package error
This commit is contained in:
parent
8f6bf6e002
commit
554c8fe163
@ -420,55 +420,53 @@ Function .onInit
|
|||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
!macro CheckAllVergeProcesses
|
!macro CheckAllVergeProcesses
|
||||||
; Check if Clash Verge.exe is running
|
; Check if clash-verge-service.exe is running
|
||||||
nsis_tauri_utils::FindProcess "Clash Verge.exe"
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
${If} $R0 != 0
|
nsis_tauri_utils::FindProcessCurrentUser "clash-verge-service.exe"
|
||||||
; Kill the process
|
!else
|
||||||
DetailPrint "Kill Clash Verge.exe..."
|
|
||||||
!if "${INSTALLMODE}" == "currentUser"
|
|
||||||
nsis_tauri_utils::KillProcessCurrentUser "Clash Verge.exe"
|
|
||||||
!else
|
|
||||||
nsis_tauri_utils::KillProcess "Clash Verge.exe"
|
|
||||||
!endif
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
|
|
||||||
; Check if clash-verge-service.exe is running
|
|
||||||
nsis_tauri_utils::FindProcess "clash-verge-service.exe"
|
nsis_tauri_utils::FindProcess "clash-verge-service.exe"
|
||||||
${If} $R0 != 0
|
!endif
|
||||||
; Kill the process
|
Pop $R0
|
||||||
DetailPrint "Kill clash-verge-service.exe..."
|
${If} $R0 = 0
|
||||||
!if "${INSTALLMODE}" == "currentUser"
|
DetailPrint "Kill clash-verge-service.exe..."
|
||||||
nsis_tauri_utils::KillProcessCurrentUser "clash-verge-service.exe"
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
!else
|
nsis_tauri_utils::KillProcessCurrentUser "clash-verge-service.exe"
|
||||||
nsis_tauri_utils::KillProcess "clash-verge-service.exe"
|
!else
|
||||||
!endif
|
nsis_tauri_utils::KillProcess "clash-verge-service.exe"
|
||||||
${EndIf}
|
!endif
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
|
; Check if clash-meta-alpha.exe is running
|
||||||
; Check if clash-meta-alpha.exe is running
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
|
nsis_tauri_utils::FindProcessCurrentUser "clash-meta-alpha.exe"
|
||||||
|
!else
|
||||||
nsis_tauri_utils::FindProcess "clash-meta-alpha.exe"
|
nsis_tauri_utils::FindProcess "clash-meta-alpha.exe"
|
||||||
${If} $R0 != 0
|
!endif
|
||||||
; Kill the process
|
Pop $R0
|
||||||
DetailPrint "Kill clash-meta-alpha.exe..."
|
${If} $R0 = 0
|
||||||
!if "${INSTALLMODE}" == "currentUser"
|
DetailPrint "Kill clash-meta-alpha.exe..."
|
||||||
nsis_tauri_utils::KillProcessCurrentUser "clash-meta-alpha.exe"
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
!else
|
nsis_tauri_utils::KillProcessCurrentUser "clash-meta-alpha.exe"
|
||||||
nsis_tauri_utils::KillProcess "clash-meta-alpha.exe"
|
!else
|
||||||
!endif
|
nsis_tauri_utils::KillProcess "clash-meta-alpha.exe"
|
||||||
${EndIf}
|
!endif
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
; Check if clash-meta.exe is running
|
; Check if clash-meta.exe is running
|
||||||
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
|
nsis_tauri_utils::FindProcessCurrentUser "clash-meta.exe"
|
||||||
|
!else
|
||||||
nsis_tauri_utils::FindProcess "clash-meta.exe"
|
nsis_tauri_utils::FindProcess "clash-meta.exe"
|
||||||
${If} $R0 != 0
|
!endif
|
||||||
; Kill the process
|
Pop $R0
|
||||||
DetailPrint "Kill clash-meta.exe..."
|
${If} $R0 = 0
|
||||||
!if "${INSTALLMODE}" == "currentUser"
|
DetailPrint "Kill clash-meta.exe..."
|
||||||
nsis_tauri_utils::KillProcessCurrentUser "clash-meta.exe"
|
!if "${INSTALLMODE}" == "currentUser"
|
||||||
!else
|
nsis_tauri_utils::KillProcessCurrentUser "clash-meta.exe"
|
||||||
nsis_tauri_utils::KillProcess "clash-meta.exe"
|
!else
|
||||||
!endif
|
nsis_tauri_utils::KillProcess "clash-meta.exe"
|
||||||
${EndIf}
|
!endif
|
||||||
|
${EndIf}
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro StartVergeService
|
!macro StartVergeService
|
||||||
|
Loading…
x
Reference in New Issue
Block a user