mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
Update windows_installer.nsi
This commit is contained in:
parent
b3cb901479
commit
5a3d36721e
@ -22,25 +22,22 @@ RequestExecutionLevel user
|
|||||||
UninstallText "This will uninstall Throne. Do you wish to continue?"
|
UninstallText "This will uninstall Throne. Do you wish to continue?"
|
||||||
UninstallIcon "res\ThroneDel.ico"
|
UninstallIcon "res\ThroneDel.ico"
|
||||||
|
|
||||||
!macro AbortOnRunningApp
|
!macro AbortOnRunningApp EXEName
|
||||||
Kill_Module:
|
killModule:
|
||||||
FindProcDLL::FindProc "$INSTDIR\Throne.exe"
|
FindProcDLL::FindProc ${EXEName}
|
||||||
Pop $R0
|
Pop $R0
|
||||||
IntCmp $R0 1 0 no_run
|
IntCmp $R0 1 0 notRunning
|
||||||
FindProcDLL::KillProc "$INSTDIR\Throne.exe"
|
FindProcDLL::KillProc ${EXEName}
|
||||||
Sleep 1000
|
Sleep 1000
|
||||||
FindProcDLL::FindProc "$INSTDIR\Throne.exe"
|
Goto killModule
|
||||||
Pop $R0
|
notRunning:
|
||||||
IntCmp $R0 1 0 no_run
|
|
||||||
Goto Kill_Module
|
|
||||||
no_run:
|
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
Section "Install"
|
Section "Install"
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
|
|
||||||
!insertmacro AbortOnRunningApp
|
!insertmacro AbortOnRunningApp "$INSTDIR\Throne.exe"
|
||||||
|
|
||||||
File /r ".\deployment\windows64\*"
|
File /r ".\deployment\windows64\*"
|
||||||
|
|
||||||
@ -60,7 +57,7 @@ SectionEnd
|
|||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
!insertmacro AbortOnRunningApp
|
!insertmacro AbortOnRunningApp "$INSTDIR\Throne.exe"
|
||||||
|
|
||||||
Delete "$SMPROGRAMS\Throne\Throne.lnk"
|
Delete "$SMPROGRAMS\Throne\Throne.lnk"
|
||||||
Delete "$SMPROGRAMS\Throne\Uninstall Throne.lnk"
|
Delete "$SMPROGRAMS\Throne\Uninstall Throne.lnk"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user