I would like to be able to have my application restarted automatically every night. Is this something that is possible to achieve using the ApplicationLauncher API of Install4j and how?
Thanks!
I would like to be able to have my application restarted automatically every night. Is this something that is possible to achieve using the ApplicationLauncher API of Install4j and how?
Thanks!
Add a custom installer application on the Installer->Screens & Actions step with the "Default execution mode" property set to "Unattended mode".
In the "Startup" node, add a "Shut down calling launcher" action and a "Execute launcher" action.
To restart, call
ApplicationLauncher.launchApplication("<ID of the application>", null, false, null);