Search code examples
javaeclipse-rcpjava-web-startjnlp

Determine RCP application is newly installed or cached


Is there any way to check my RCP application is first time installed (via Webstart) or is run from cached (for example. desktop shortcut) during runtime. What I have in mind is implement DownloadServiceListener and check if one of the static resource is downloaded (if yes - new, if no - cached).


Solution

  • Use the installer-desc element of the JNLP to invoke some code that writes an attribute in the PesistenceService. See more information on the JNLP API.