Search code examples
javadeploymentjnlpjava-web-start

Is there a JNLP Un-install event?


Does Java Web Start have any callback when your JNLP deployed app is going to be un-installed (either via Add/remove programs or Java Control Panel)?

Reason for this is to delete any app-generated artifacts & directories.


Solution

  • See the ExtensionInstallerService demo.

    Java web start (JWS) offers the installer-desc element to identify an installer/uninstaller for an application. The intent of the installer is to do any application set-up/pull-down that can not be handled by the standard JWS behaviour of caching the classes/resources at 1st launch, and clearing them at uninstall.

    Emphasis mine ( quote from my demo. ;).