Archive: a bug when install or Unstall!


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


Some suggestions ;)

http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.2.8

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.5

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.1

http://nsis.sourceforge.net/FCT_plug-in

http://nsis.sourceforge.net/FindProcDLL_plug-in


thanks for upstairs

i solve the problem by using your tips
http://nsis.sourceforge.net/FindProcDLL_plug-in


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