Archive: refresh the running processes


refresh the running processes
Hello all,

I am trying to write an uninstaller for a program that has a service that runs all the time. I’ve tried using a few different plugins and I can get the service to stop. But usually it takes the operating system (Windows XP / Vista) a while before it realizes that the service is stopped and releases the files that the service uses so I can delete them. Anybody know how to get the operating system to refresh the running processes list? Or any other suggestions to my problem?

Thanks


Use a ${While} loop with LogicLib.nsh and have a Sleep 1000 or something plus a Delete. You should include a counter (IntOp) and you should Abort the install when the counter has reached a certain value (${If}/StrCmp) so that it does not loop forever.

Stu


That is basically just waiting and it is what I am doing now. It works, but not all the time. Have any different ideas?