Old 4th October 2006, 18:38   #1
madanshah16
Junior Member
 
Join Date: Oct 2006
Posts: 2
How to check running application

Hi folks,

I have developed nsi installer for my application. In the installation process I am copying FrameMaker plugin into FrameMaker directory. I need to check whether the FrameMaker is running or not before copying the plugins. If the FM is open then I should stop the installation and give a warning to close the application.

I found this code from NSIS for uninstallation:

/* Replace the values of the two defines below to your application's window class and window title, respectivelly. */

!define WNDCLASS "WindowClassOfYourApplication"
!define WNDTITLE "WindowTitleOfYourApplication"

Function un.onInit
FindWindow $0 "${WNDCLASS}" "${WNDTITLE}"
StrCmp $0 0 continueInstall
MessageBox MB_ICONSTOP|MB_OK "The application you are trying to remove is running. Close it and try again."
Abort
continueInstall:
FunctionEnd

I need the values of two defines for the FM application to check whether it is running or not.

Please help me in this regard. Is there any other solution to solve this problem?

Thank you in advance
madanshah16 is offline   Reply With Quote
Old 4th October 2006, 20:11   #2
CrushBug
Senior Member
 
Join Date: May 2005
Posts: 119
Get WinSpy++ 1.7

http://www.catch22.net/software/winspy.asp
CrushBug is offline   Reply With Quote
Old 5th October 2006, 10:21   #3
madanshah16
Junior Member
 
Join Date: Oct 2006
Posts: 2
Thanks a lot! Tried and it is working now..
madanshah16 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump