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.
These functions did not function as I had expected I was hoping to create a semi-automated script for parsing through a list and ending the functions in a list, but when I use ${TerminateProcess} the process is ended and then the .exe file is deleted? and when I use the ${CloseProcess} nothing happens, except for the launcher parsing through the ini file, searching for the process, obtaining the PID, obtaining the path, and attempting to end the process, but it never is ended, did I do something wrong in these two parts of a section?
I l know that this topic is well over 4 years old and I know that much of this has been added into the th ePA Launcher, so do NOT get angry at me for adding to an old thread since I did what everyone tells use to do and search the forums first, heck I even searched Google for my answer and this was one of the first 5 hits.
I amdeveloping amarok, one of the issues I am trying to deal with is that after the main program exits there any where from 4-8 processes still running that prevent you from removing the drive as it is "still in use" I can manually kill them and all is good. SO I was looking into writing some custom launcher code in the post phase to kill the processes which brought me back here. If this code is now part of the PA Launcher can I kill them from within the launcher or use parts of this code to create a post section? Since I know the processes that need killing I think I could just usse the KillProc feature? Any help or ideas appreciated
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Try writing ${TerminateProcess} into ${SegmentPost} with all the exe's and see if it compiles fine, and if it doesn't then !including ProcFunc.nsh will get you your expected results.
at http://pastebin.com/VcSG5HDk which is my attempt and I also included in comments the error, been trying to figure it out for 2 hours and just not sure if I not understanding or what I am missing
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
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
These functions did not function as I had expected I was hoping to create a semi-automated script for parsing through a list and ending the functions in a list, but when I use ${TerminateProcess} the process is ended and then the .exe file is deleted? and when I use the ${CloseProcess} nothing happens, except for the launcher parsing through the ini file, searching for the process, obtaining the PID, obtaining the path, and attempting to end the process, but it never is ended, did I do something wrong in these two parts of a section?
or
(edit) turns out the loop was faulty and directed it to the delete option
Can anybody help me, why this code wrong? Why CloseProcess works only once?
I found solution. Problem was in "callback1". There is
The ${EnumProcessPaths} only report the installer itself on 64-bit windows. The same code works well on 32-bit windows. Is this a bug?
I l know that this topic is well over 4 years old and I know that much of this has been added into the th ePA Launcher, so do NOT get angry at me for adding to an old thread since I did what everyone tells use to do and search the forums first, heck I even searched Google for my answer and this was one of the first 5 hits.
I amdeveloping amarok, one of the issues I am trying to deal with is that after the main program exits there any where from 4-8 processes still running that prevent you from removing the drive as it is "still in use" I can manually kill them and all is good. SO I was looking into writing some custom launcher code in the post phase to kill the processes which brought me back here. If this code is now part of the PA Launcher can I kill them from within the launcher or use parts of this code to create a post section? Since I know the processes that need killing I think I could just usse the KillProc feature? Any help or ideas appreciated
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Try writing ${TerminateProcess} into ${SegmentPost} with all the exe's and see if it compiles fine, and if it doesn't then !including ProcFunc.nsh will get you your expected results.
will give it a try
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
at http://pastebin.com/VcSG5HDk which is my attempt and I also included in comments the error, been trying to figure it out for 2 hours and just not sure if I not understanding or what I am missing
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
$Var
is not defined?Previously known as kAlug.
how can i modify this script to allow me to execute a process hiding his window ?
Pages