Cycle of seaching process
How create the cycle of searching process? Example during 5 sec. If process find then next to code else error.
7 posts
!include "nsProcess.nsh"
loop:
${nsProcess::FindProcess} "App.exe" $R0
StrCmp $R0 0 0 +4
${nsProcess::KillProcess} "App.exe" $R0
Sleep 100
Goto loop !include "nsProcess.nsh"
loop:
${nsProcess::FindProcess} "App.exe" $R0
StrCmp $R0 0 0 break
${nsProcess::KillProcess} "App.exe" $R0
Sleep 100
Goto loop
break: Correct, you should not use relative jumps over macros!Originally Posted by JasonFriday13 View PostAnother version with an absolute goto from loop: