dyavorski
30th September 2007 14:31 UTC
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
Wizou
1st October 2007 09:53 UTC
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
n_baua
3rd October 2007 12:56 UTC
!include LogicLib.nsh
...
ClearErrors
FileOpen $R0 "C:\file.txt" w
${If} ${Errors}
# File is locked.
${Else}
FileClose $R0
${EndIf}
-----------------
this should work for you.
Takhir
4th October 2007 07:34 UTC
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
dyavorski
5th October 2007 11:53 UTC
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