Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 903
thirdy Avatar asked Jul 04 '11 03:07

thirdy


1 Answers

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. ;).

like image 54
Andrew Thompson Avatar answered Oct 17 '22 12:10

Andrew Thompson