All work! Steeply!
Loosed in GoTo))
Thank you for good code!
It is Correct I use your code gentlemen? The Paircouple beside I work only for 1 file!
If I try right behind close one more file that beside me is not got.
Prompt please.
!macro StopExe NAME
StrCpy $tmpRetVal 0
StrCpy $tmpCount 0
DetailPrint "Çàâåðøåíèå ðàáîòû '${NAME}'"
StrCpy $tmpCount 2 ;// ×èñëî ïîïûòîê
${CloseProcess} "${NAME}" $tmpRetVal
${Do}
${If} $tmpRetVal != 0
${ProcessWaitClose} "${NAME}" "1000" $tmpRetVal
${EndIf}
;// -1 - operation timed out
IntOp $tmpCount $tmpCount - 1 ;// Ñ÷åò÷èê ïîïûòîê
${If} $tmpRetVal == 0
StrCpy $tmpCount $tmpRetVal ;Íå íàéäåí ïðîöåññ èëè çàêðûò
${EndIf}
${LoopUntil} $tmpCount == 0 ;// Ïîêà åñòü ïîïûòêè è ïðîöåññ åùå íå óáèò
${If} $tmpRetVal