|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 4
|
FCT plugin - msgonly
Hello,
I would like to identify whether my application is currently running while i am uninstalling it. I don't want to kill/close the application, but rather notify the user to close it. I found that FCT plugin suits my needs. However, I have a problem. Eventhough I am using /MSGONLY parameter (Not attempts to terminate the process), it is still terminating the application. what is wrong with my code? How can I know that FCT identified a running instance of my application? Return value should be >0? code: Thanks in advance |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Speaking about your application I guess you know the window class/title so you may simply use the FindWindow instruction,
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.14.5 Just search the forum, you'll find loads of examples. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2009
Posts: 4
|
Hello,
FindWindow doesn't suit my needs because my application's class name is "SunAWTFrame" and most of the java application using JFrame tend to have the same. And title is only partial i.e. only some part of the title is constant and the remaining part changes (project name). |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Takhir added a function in wiki which involve system plugin, did you check it?
You may replace the part of killing the process with interactive messages. http://nsis.sourceforge.net/Find_and_Close_or_Terminate Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2009
Posts: 4
|
thanks for the quick replies.....
"Find and Close or Terminate" macro won't work as it needs unique & complete class name or unique & complete class title. |
|
|
|
|
|
#6 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
You're welcome.
Same issue huh? I'm sure I've seen here several related threads, so what do you say, are you going to dig the forum? ![]() Here's the result of a very quick search, http://forums.winamp.com/showthread....hreadid=248179 Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2009
Posts: 4
|
Actually i searched the forum before posting...
Hopefully Takhir will find this post & reply :-) |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
'Close or Terminate' means that plug-in first sends WM_CLOSE to application and then (optionaly) terminates application. 'Find only' mode not supported in current version (may be in next release?
). But you can try to find application by file name, for example http://nsis.sourceforge.net/KillProc_plug-inAlso - plug-in returns number of not closed/terminated processes. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|