install4j - How to avoid application start after cancel auto update on startup? -
today need deactivate auto startup of main application after abort update process. update triggert automatically during startup used "silent version check" template. can't find option deactivate automatic startup.
it necessary update version if there newer installed 1 before starting main application.
using version 5.1.5.
in advancehardie
if requirements more complex, cannot use automatic launcher integration. on launcher integration tab of updater, click on "start integration wizard". wizard give code snippet can invoke in main method of application in order start updater.
surround code snippet with
if (updatechecker.getupdatedescriptor(update_url, applicationdisplaymode.gui).getpossibleupdateentry() != null) { // code snippet integration wizard launch updater
}
so updater invoked if update available. then, if not receive call prepareshutdown, can display warning , close application.
Comments
Post a Comment