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
verify older version not running
5 posts
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
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.
...
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
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
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