Old 24th January 2008, 08:05   #1
conandll
Junior Member
 
Join Date: Jan 2008
Posts: 2
a bug when install or Unstall!

when i install the program which packed by NSIS at the frist time,The result of the installation is very succesfull.
but you launch the your program and use it, at the same time
you launch the installPacket again, and next..next, install your program again.
bug is appear! your program is running now, but installation
don't tip you your program is running, you must close it and install.
so if the installPacket is newer one, the result is that other document are update by intallation except the running one.
the same thing also were found during the uninstallation.
when you program is running, the result is your program were not be uninstalled.

i hope solve this bug, please give me a tip.
thanks

i tried to solve it and wrote the code below,but it's dosen't work!

Function .onInit
FindWindow $1 'Static' 'window title' '#32770'
IntCmp $1 0 +3 +1 +1
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "tip to user" IDYES +1
abort
FunctionEnd
conandll is offline   Reply With Quote
Old 25th January 2008, 01:21   #3
conandll
Junior Member
 
Join Date: Jan 2008
Posts: 2
thanks for upstairs

i solve the problem by using your tips
http://nsis.sourceforge.net/FindProcDLL_plug-in
conandll is offline   Reply With Quote
Old 25th January 2008, 01:38   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Or have your application create a mutex and use the same method that is commonly used to check whether the installer is already running:

http://nsis.sourceforge.net/Allow_on...aller_instance
Joost Verburg 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