This is not necessarily the best way, but it may work for you.
You can write a download application (ala the World of Warcraft launcher if you played WoW). This bootstrap is responsible for checking for updates.
- If an update is available, it will offer it to the user, handle the download, installation, etc.
- If the application is relevant, it allows the user to run the application
- If you wish, you can allow the user to run the application, even if it is not updated
This way, you donβt have to worry about getting out of your application.
If your application is based on the Internet, and if it is important that they have a modern client, you can also perform version checks while the application is running. You can execute them at intervals, performing normal communication with the server (some or all of the calls), or both.
For the product that I recently worked with, we performed a version check at startup (without an application to bind to download, but before the main window appears) and during calls to the server. When the client was outdated, we relied on the user to log out manually, but prohibit any action against the server.
Please note that I do not know if Java can invoke user interface code before you open the main window. We used C # / WPF.
Merlyn Morgan-Graham Oct 23 '10 at 4:23 2010-10-23 04:23
source share