What does "Soft close" mean and how does it work? - install4j

I created a little test application to place a tray icon in the system tray bar of windows. The installation with install4j is working well and also the uninstall process by using the "Terminate immediately" option for the "Check for running system" action is working. But when the application is killed the tray icon still exists in the system tray bar until someone is hovering the icon. Then the icon diapear. So I thought about to implement a runtime hookup to the application main class to remove the icon from the system tray before the vm is terminated. I switched the mode of the install4j action to "Soft close immediately". But that causes an error saying application is still running. Now I am wondering how this option is working and what the "Soft close" means. Do this innitiate the vm shutdown? In the "Check for ..." action I disabled the "Inluding launcher" option and added the generated executable directly for the additional executables.
PS: we are using version 6.1.5.

"Soft close" sends a WM_CLOSE message to all visible windows of the process. "Terminate" kills the process. If there is only a tray icon, there will be no visible window and soft close will not work.

Related

Netbeans won't start-up - 7.4

I force shutdown my pc by holding down the power button till it went off. Just before it shutdown, I saw a netbeans pop-up just come up before the system went off. Before initializing the shutdown, I had closed netbeans, and I think that netbeans had not fully shutdown. The pop-up might have been the last procedure the IDE automatically does, like those that flash the cmd which almost immediately closes by itself.
The problem is that now netbeans won't start up. It only shows the blue window then dissapears, not to appear again, even in the task manager.
How can I fix this?

Handle the click on the Terminate button of an Eclipse's console?

Using Eclipse, I'm launching an external program through an "External Tool Configuration".
My program has a "bin/launch-program" executable, but also a "bin/stop-program" which is the only way to stop the program.
In my Eclipse's External Tool Configuration, tab "Main", I set:
Location: <PROGRAM_HOME>/bin/launch-program
Working Directory: <PROGRAM_HOME>
But I'm looking a way to handle the stop event.
In other words, launching an external program works well: I get the output in the Eclipse's console. The question is: how to handle the click on the Terminate button of the console, to launch a specific command line?
terminating the program from the terminate button of the eclipse console is equivalent to kill it by using a task manager.
It's not safe to edit the command on the red terminate button, but you can make the program to do things before exiting
shutdown hook

Auto-update and launcher integration - install4j

I am trying to integrate install4j updater application to be part of start menu (in Windows). So that user can go to Start->Programs->AppName->Update and start updater.
I tried with "Launcher integration" option (I created launcher who points to batch file with only one echo command which is doing nothing) and setup my updater to be invoked whenever this launcher is invoked (launcher exists in the Start menu).
But when I start launcher from the Start menu, updater doesn't appear, no errors, no logs and launcher is executed (echo message).
Is there any other way or I miss something?
I am trying to integrate install4j updater application to be part of
start menu (in Windows). So that user can go to
Start->Programs->AppName->Update and start updater.
Presumably you have a "Create program group" action in your "Installation" screen. In the configuration of that action, activate the "Windows program group entries" tab and add a file link to the updater.

Auto-start in install4J

Is there an integrated feature that will enable me to auto-start the program after Install4J installer is finished? Ideally to add "Start after installation is finished" button.
I see that there is field "Post-activation script" property on the finish form in the installer, but not sure if this can be used.
Just add an "Execute launcher" action to your "Finish screen". When you do that, the install4j IDE will also ask you if you want to add a confirmation question to the finish screen.

Javaw.exe - Approximately 60 Instances Running Simultaneously

Upon checking Task Manager (Windows 7), I have approximately 60 instances of javaw.exe running, ranging from approx. 1,000K - 450,000K.
I am currently working on a large project, developing some software using Eclipse Helios.
Can somebody explain why this is happening?
Lots of possible reasons for this, but in my experience the most likely is that instances of your app that you are starting to test or debug are staying around after you think they are gone.
If you don't explicitly stop the previous instance, and click the "Run As" (Green Arrow) button again, the previous instance will just keep running in the background. In the console tab, there is a drop down which will show all running instances. You need to click the red box on each of these to kill the process.
I think it's a bug in Eclipse. When you stop the console - clicking the big red button - the javaw.exe process carries on running.
You solve it by opening task manager, identifying the javaw.exe process that isn't for Eclipse (go to show columns and show "command line") and then right click: end task