When/how does the UNinstaller get called?

This simple demo. of using the ExtensionInstallerService
has me confused..
http://www.physci.org/jws/application.jnlp
It behaves as I expect on installation.
At time of installation, the user is prompted to
accept a psuedo 'license agreement'.
If they accept it, the application is launched.
If they refuse it, it is not launched.
If they refuse it, they can try again later and
the EULA dialog will be shown again, and
will continue to be shown, each launch, as
many times as the user refuses it.
But how/when is the uninstall option called?
In this example, I used the uninstaller option
simply to thank the user for using the application.
However, I do not ever see the 'thanks' dialog.
So far I have tried uninstalling the app. from both
the Java Control Panel, as well as Windows own
Add/Remove Programs dialog.
Does it work for anybody else?
The source for the installer that I am currently
using is as follows.
package test;
import javax.swing.*;
// classes of the web-start API, used in this example.
import javax.jnlp.ExtensionInstallerService;
import javax.jnlp.ServiceManager;
import javax.jnlp.UnavailableServiceException;
class Installer {
  Installer() {
    try {
      ExtensionInstallerService installerService =
        (ExtensionInstallerService)ServiceManager.
          lookup("javax.jnlp.ExtensionInstallerService");
      /* We do not need the progress bar as progress
      is determined by the user accepting the EULA.
      They can consider it as long as they like. */
      installerService.hideProgressBar();
      int result = JOptionPane.showConfirmDialog(null,
        "Do you agree to the EULA?",
        "End User License Agreement",
        JOptionPane.YES_NO_OPTION,
        JOptionPane.QUESTION_MESSAGE );
      boolean agree = (result==JOptionPane.YES_OPTION);
      if (agree) {
        installerService.installSucceeded(false);
      } else {
        JOptionPane.showMessageDialog(null,
          "Perhaps another time..");
        installerService.installFailed();
    } catch (UnavailableServiceException e) {
      e.printStackTrace();
  public static void main(String[] args) {
    if ( args[0].equals("install") ) {
      Installer installer = new Installer();
    } else {
      /* No need to do anything on uninstall,
      but thank the user for their patronage */
      JOptionPane.showMessageDialog(null,
        "Thank you for using (Trivial) Application!");
}

I submitted a Bug Report for this, under the title..
installer-desc UNinstaller never called
The basic gist of it is..
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.
The 'install' side of the installer-desc element
seems to work as advertised, but as has been noted
in the web start forum a number of times*, the
installer is never called at time of 'uninstall'.
* Though none reported successful resolution of
the problem, it also seems no one took it through
to a bug report.
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=5124101
(one report)
http://forum.java.sun.com/thread.jspa?threadID=790898
(two relatively recent reports)
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=263691
(1 report from June 2002)

Similar Messages

  • How does the GR get into SUS---MM-SUS Sceanario

    Hi all,
    How does the GR get into SUS---MM-SUS Sceanario. Can anyone explain??
    Thanks in Advance..
    Regards,
    Jagan

    Hi,
    In SUS - MM scenario
    The supplier ships the goods and sends an ASN based on PO or an Scheduling Agreement to the purchaser. If ASN is based on PO then PO Response has to be accepted  by the purchaser. When the ASN is sent from the SUS system, an inbound delivery is created automatically in SAP MM.
    Now Create GR with reference to ASN or PO based on your requirement in R/3 - MM. The GR notification is then sent to the SUS system, where the supplier can display it.
    Please reward points for helpful answers

  • How does the attribute gets the data from R/3 field?

    Hi Experts,
    It could be silly Q.  IO has attributes x, y, z.......  When we map r/3 field to IO, and it is added to the cube and when we create a report, how does the attribute gets data?  I've been working in BW and suddenly I got confused.  Someone please provide me some info
    Thanks,
    Radha

    X,Y,Z being attributes of an info object A.
    When A gets loaded it will be loaded with X,Y,Z.
    If A is a cube and if you wish you can bring X,Y,Z also in the cube in one or more dimensions.
    If you keep X,Y,Z as vag attributes rather than in te cube as dimensions, then , the system will generate SIDs for them.
    Ravi Thothadri

  • Purchased ExportPDF for one of our end using depts.  It is under my account I manage for our institution.  How does the dept get the application to download.

    Purchased ExportPDF for one of our end using depts.  It is under my account I manage for our institution.  How does the dept get the application to download.

    Hi Cassi,
    If you are ordering subscriptions for various people in your office, it would be best to sign up under their Adobe IDs, so they can log in and use the subscription with their own credentials. As for moving the current subscription, the easiest route is to cancel the current subscription (see Cancel your membership or subscription | Acrobat, Acrobat.com online services--or I can help), and then reorder as necessary.
    Best,
    Sara

  • HT201210 How does the Ipad get back to Nigerian Store from American Store to enable it carry out Update aand Downloading?

    Dear All, please, How does the Ipad get back to Nigerian Store from American Store to enable it carry out Update and Downloading?

    Try this.
    Settings>iTunes and App Stores>Apple ID
    Tap your ID
    Tap View Apple ID
    Enter your password
    Go to country/region in the popup window to change the store

  • How does the icon get created for a saved file

    In my program I allow saving files using JFileChooser and ActionListener.
    In the constructor of the main class which extends JFrame I also set an icon by saying:
    this.setIconImage(new ImageIcon("image.jpg").getImage());
    This does not only set an icon on the title bar and the minimized window, it also creates an icon on my saved files. However, the image quality for the icon on my saved files is bad, even though the image quality for the other icons is ok. The size of the icon image I am providing is close to the size of the icon image on my saved files.
    How did the icon get created for my saved files? Is it possible to improve the image quality?
    Thanks for looking at this!

    I just realized that
    this.setIconImage(new ImageIcon("image.jpg").getImage())
    did not create the icon for my saved files.
    So what did create it? I did not program it!
    However, I happen to have an icon file Ananya.ico where I have my java project. I use if for my installation file. Did Java use this icon?
    Please help! Thanks!

  • How does the system get the page format in reports

    Hi to all experts,
    where does the report gets the page format while print how do default the page format to the report while printing...
    please help

    Hi Mohamad,
    For printing reports by default it ill take the page format assigned to the printing device like (locl), in print preview,
    u can check the same in Transaction : SPAD.
    there click on output devices ->click on devices which u r using-->
    click on last tab->field(TRAY1)--->there u can find the page format for tht printer.
    U can change that as per ur requirement.
    i hope it ill sovle ur prob.
    Regards,
    Niranjan.G

  • How does the TableCellRenderer gets the value to render?

    Hello.
    I use my own AbstractTableModel together with a table, and I keep the data to be displayed in my table model.
    I would like to render the table headers.
    My question is, where does the TableCellRenderer get the value to render from?

    I'm not sure I understand your question. Do you want to render a cell or the header ?
    Here's an example :
    DefaultTableCellRenderer lRenderer = new DefaultTableCellRenderer()
    //This is the method you want to overide
    public Component getTableCellRendererComponent( JTable aTable,
    Object aValue, //This is the value coming from the TableModel
    boolean aIsSelected, //Is your cell selected
    boolean aHasFocus, //Does it have the focus
    int aRow, //the row of the cell renderer
    int aColumn //the column of the cell renderer
    //Get the component from the ancestor
    Component lComp = super.getTableCellRendererComponent( aTable, aValue, aIsSelected, aHasFocus, aRow, aColumn );
    //Cast the component to whatever you want, a JLabel
    //forinstance
    JLabel lLabel = (JLabel)lComp;
    //Let's say the value is an integer
    //Change the icon according to the value of the
    //object retrieved in the TableModel
    if ( ((Integer)value).intValue() == -1)
    //You might want to put these icons in member variables
    lLabel.setIcon(new ImageIcon("MyGif1.gif"));
    else
    lLabel.setIcon(new ImageIcon("MyGif2.gif"));
         return lComp;
    Of course you have to set the tablecellrenderer to the JTable.
    I hope this helps !
    Jean-Francois Gilbert

  • How Does the Book Get Into My Reader?

    My message says I should go to my reader and I will find my book there, but when I oredered it, nothing asked me about my reader.  I have a Sony-e-book.  So how do I get the book into my "list" so that I can download it?  The Adobe Format I have is 9 (something)

    Hi,
    In SUS - MM scenario
    The supplier ships the goods and sends an ASN based on PO or an Scheduling Agreement to the purchaser. If ASN is based on PO then PO Response has to be accepted  by the purchaser. When the ASN is sent from the SUS system, an inbound delivery is created automatically in SAP MM.
    Now Create GR with reference to ASN or PO based on your requirement in R/3 - MM. The GR notification is then sent to the SUS system, where the supplier can display it.
    Please reward points for helpful answers

  • TS4009 I purchased 50gb of storage, yet nothing is being backup?  How does the data get backup?

    I dont know how to store data on cloud, i thought it was an automatic process, any tips for a beginner

    Have you tried a manual backup to iCloud?  Settings>iCloud>Storage&Backup.  Click the Back Up Now button.
    If on the other hand, you are asking how to store various files to iCloud (like iDisk used to do in MobileMe), then ICloud cannot help - it does not offer a service similar to iDisk.

  • How does the server authenticate a print user?

    I don't fully understand how my XServe authenticates my clients for print access. If the XServe user account differs from the account on the client machine, does it still work? For example, if server account John Smith is allowed to print to a queue, will it still work if the client machine account is Johnny Smith?
    How does the XServe get the authentication info?

    Hi
    I might be able to shed some light on this. Is the printer you are managing a networked printer on the same IP address range as server and clients?
    If thats the case then you can print to the printer directly and bypass the server’s print server anyway. You have to use different methods if you really want to lock the printer down and have users print to it by using the accounts specified in WorkGroup Manager – and by implication using either PasswordServer or Kerberos authentication.
    You can do this a number of ways. If your server has two ethernet ports – which yours has – then place the printer on the other ethernet port that is currently not in use. There is no way for any of your clients to access this printer other than through the Server. If you have more than one networked printer, again utilise the other ethernet port, this time attach a small switch/hub 5-8 ports (depending on how printers you have) to the port and work it the same way.
    Hope this helps.

  • When and how does the message context get removed from the message when we use pass thru send port

    Friends,
    i have a doubt regarding message context.
    Assume i have used XMLRecieve pipeline in the receive side to receive the message so that the message context is created. I.e properties are promoted/written.
    now if we use pass thru transmit pipe line at send side, how and when does the message context get removed from the message?? Since pass thru does not have any stages/components, how does the message context removed and sent out a pure message to destination???
     i mean what exactly happens here to remove the context??
    Ravindar

    Thanks for the reply.
    "The Context is created by the Adapter, regardless of any Pipeline or Pipeline Component.  It has nothing to do with PassThrough vs. XmlReceive, although XmlReceive will write Promoted Properties to the existing Context,
    as can any other Component."
    yeah yeah, adapter does create some properties in context. You are right, i am aware of it. I just missed to explain it clearly. what i meant is addition of context properties will not happen if pass thru used. Thanks its clear.
    "No.  The Context already exists on the Message when it comes from the MessageBox and
    is equally available to any Component in any Stage.  The Context that hits the Pipeline is whatever was last Persisted, either by a Receive Port or Orchestration.  It is not created by the XmlAssembler (XmlTransmit)"
    You are right , the context already exists on the message while it leaves the receive port, and once it persists
    to message box the context and message context gets stored in messages in relative tables.
    Now as you said the components get the message from the last persistence, assume i have a send port(with passthru)
    subscriber and a orchestration subsrciber for this message.
    Orchestration gets the message with context right!!
    if the send sendport(with passthru) also gets message along with context, then where is this context removed/demoted
    while sending it out?.  i guess as per SAAkhlaq said,
    here sendport(with passthru) should get a pure message without context as passthru used. 
    or is it that ultimately send adapter removes the context completely?
    or is it something like biztalk run time load the context from database into cache and both orchestration and send port gets pure message, and if needed they use context from cache???
    sorry i may be troubling you, but i am confused. i hope i am not creating any nuisance with this
    post.
    Ravindar

  • How does a workflow get triggered when we create a Shopping cart

    Hi all,
    In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
    Thanks&Regards,
    Hari

    Hi martin,
    yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
    Thanks&Regards,
    Hari

  • How does the software updates actually get installed?

    Hello,
    Yesterday I followed the steps to perform "To manually deploy the software updates in a software update group" or
    https://technet.microsoft.com/en-us/library/gg712304.aspx.  or pages 12-15.  In a nutshell, I created a Critical Update item with a collection of 3 servers.  When I look
    at the Software Update Group area that lists the members that I created, I do see under the tabs that Deployed=Yes and Download=Yes for the items that I created.    However, this was not installed on any of the servers.   How does
    this actually get installed on the collection servers?  Did I miss a step?   Do the client settings play a role here?  Please advise.
    Thanks for all the help!
    Reez

    Kind of. Yes a software update scan cycle must run (a deployment eval doesn't), but it doesn't wait until the 7 day interval. Simply creating a new deployment in the console will trigger a software update scan cycle on targeted clients:
    http://blog.configmgrftw.com/notes-software-update-scan-cycle/
    For your deployment, did you create a "Required" deployment?
    Have you reviewed software center on the targeted clients?
    Have you check wuahandler.log on the clients.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How does the MDKP table gets updates

    Dear PP Guru's,
    I am new to SAP PP,
    We have a query that how does the MDKP table gets updates,
    Some time If we create new material by coping the material which is showing in table MDKP,
    But new material is not showing in table MDKP,
    Based on table MDKP we are fetching some data, due to above problem we are not able to fetch the data for some materials,
    Please suggest what could be the reason,
    Any help will be highly appreciated,
    Thanks in advance,
    Sachin.

    Thanks Thaila,
    I have checked the same by doing MRP through MD02 & the entry is getting update in MDKP,
    But for some of our materials MRP (MD02) is done earlier, but these materials are not showing in MDKP,
    Please suggest, when the entries in MDKP are removed, are there any conditions for removing the entries from MDKP.
    please pour some light on the issue,
    Thanks once again,
    Sachin.

Maybe you are looking for

  • Query "Status Overview is already open in another session"

    Hi All, We implemented ESS MSS on Portal 7.01 SP8. With With SAP_ESS 603 SP7 and BP_ERP5ESS 1.41 SP9 This is for country Qatar and it has made as a copy of GB as SAP doesnt provide any country structure for Qatar. We are facing error in Performance D

  • SharePoint 2013 disable Save/ Share or Print option in Office Web Apps for PDF and Word Docs

    Hi, How can we disable Save/ Share or Print option in Office Web Apps for Word and PDF files. Regards,

  • Validation for Custom document over internet -Protocol

    Hi all, Could you please help me , what to configure in B2B In protocols tab while configuring custom document over internet , do we need to swithc ON the validation or its SWITCH OFF the validation. For both inbound and outbound transactions(PROCES

  • Re: After payment subscription was not updated

    I have the same problem with the skype subscriptions, 2 months ago i ordered Philippines 60 minutes 1 month order number xxxxxxxxxxxxxxxxxxxxxxxxx and unlimited world 1 month order reference xxxxxxxxxxxxxxxxxxx after e mailing me that my ordered has

  • IDVD '04 will not burn disk

    I've done a second install of iDVD on my 2nd HD. When I tried to burn a DVD-R disc from imovie, it went through all the motions then gave me this error: The recording device reported the media error: Power calibration area error (0x73, 0x0.3) I've go