instanceAlreadyExistsMsg doesn't work

Help
yccheok
2012-12-20
2013-06-12
  • yccheok
    yccheok
    2012-12-20

    Hi, thanks for Launch4J. I used it since 3.0.1. It is a great tool.

    Recently, I need to make my app

    - Only single instance
    - Pop up a message, if user try to launch the same app for 2nd time

    I make the following modification.

    http://jstock.hg.sourceforge.net/hgweb/jstock/jstock/rev/3500c5ba143b

    Single instance feature works. But the custom message doesn't work. No message
    shown, when the same app is launched for 2nd time.

    When launching for 2nd time, Launch4J will make the app window activate. However,
    this creates problem when my app window is invisible and become a tray icon.

    When I launch the same app for 2nd time, I will get a blank white window being
    shown.

    http://i.stack.imgur.com/6VkBv.png

    Any help is appreciated.

     
  • yccheok
    yccheok
    2012-12-23

    Here's how the settings look like in GUI