Tonst
5th November 2008 11:09 UTC
Uninstaller - Files in use
If a file is locked (i.e. file open / exe running) the uninstaller will not DELETE it, but also does not complain with an abort/skip/retry.
When you come to install (say a newer version) it WILL complain that it cannot overwrite a file in use with an abort/skip/retry.
My installer triggers the uninstall of previous versions and waits for it to finish. I've seen a few threads about FindProcDLL but I don't really want to have to go searching for several processes and it's not going to work with any file locks not caused by a known process. How does everyone deal with this?
Thanks.
Animaether
5th November 2008 18:26 UTC
perhaps...
http://nsis.sourceforge.net/LockedList_plug-in
Tonst
6th November 2008 15:06 UTC
Thanks! It'd be good if I could *.dll *.ocx within my paths just to be 100%. For now i've got it to look for all my exe names and I think that'll do. At least it looks pretty :)
Afrow UK
6th November 2008 17:14 UTC
It should work with any types of modules.
Stu
Tonst
11th November 2008 09:32 UTC
Yeah it does work with all types, the niggle I have is that I can't pass the plugin path with a wildcard filename. I don't want to write out 70 odd ocx/dll names, well especially not at this stage as our build output is still changing quite a bit. I suppose I could write a script in NSIS to find the matching files and pass those through though.
furmanOFF
22nd May 2009 15:47 UTC
Can LockedList search for module usage only by application with specified caption or class?
Afrow UK
22nd May 2009 16:09 UTC
You either add an application to the list by knowing one of its module names or by knowing all or part of the window title or window class.
Stu