Archive: verify older version not running


verify older version not running
Hi All
I have just built a new nsis installer, but the customer saw that in his older "installshield" version the installation would stop when it found out that the older version of the application was working.
How can I create this feature in nsis installer?
A simple command that enables me to get alist of the running processes will suffice.
Thanks a lot
Danny


a quick way is to try to delete the executable..
if it fails, you either:
- don't have the rights for this operation
- the executable is in use


!include LogicLib.nsh
...
ClearErrors
FileOpen $R0 "C:\file.txt" w
${If} ${Errors}
# File is locked.
${Else}
FileClose $R0
${EndIf}

-----------------

this should work for you.


May be your task is not found but stop application. For apps with main window http://nsis.sourceforge.net/FCT_plug-in should help.
Other NSIS plug-ins : http://nsis.sourceforge.net/Category:Plugins
And this is a great history of 'process kill' on this forum: http://forums.winamp.com/search.php?...der=descending


Hi all
Thanks a lot for all the responses
I found out what I am looking for - FindWindow command.
Of course it is only helpful if the application is a window app
Thanks again
Danny