This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119132

Summary: Uninstaller showing removal of server not installed
Product: installer Reporter: big_al <big_al>
Component: CodeAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: blocker CC: jrojcek
Priority: P2 Keywords: USABILITY
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Unclear about whether it will uninstall my pre-installed version of GlassFish

Description big_al 2007-10-16 21:59:34 UTC
When I installed NetBeans I selected that it should use my pre-installed version of GlassFish and Apache Tomcat. When
uninstalling it asks if it should removed the runtimes for GlassFish and Apache Tomcat. The uninstaller dialogue was not
clear about what exactly was going to be uninstalled. I did select for it to uninstall both GlassFish and Apache Tomcat
but it didn't remove my pre-installed version of either software (which I don't think it should either!). It could be
made more clear about which installation of the application server it will try to uninstall (by also providing the path
to the application servers for example).
Comment 1 big_al 2007-10-16 22:00:51 UTC
Created attachment 51060 [details]
Unclear about whether it will uninstall my pre-installed version of GlassFish
Comment 2 dlipin 2007-10-17 09:00:11 UTC
Jano,

what is the best solution of this problem?
Comment 3 big_al 2007-10-17 10:23:57 UTC
When a server has not been installed (using a pre-installed server), the dialogue should not even be displayed as it
doesn't remove anything anyway.

Also, if the path of the server that it would be uninstallation is visible in the dialogue that would give a hint about
what will actually be removed (some people have multiple application server installations).
Comment 4 big_al 2007-10-17 10:24:19 UTC
When a server has not been installed (using a pre-installed server), the dialogue should not even be displayed as it
doesn't remove anything anyway.

Also, if the path of the server that it would be uninstalling is visible in the dialogue that would give a hint about
what will actually be removed (some people have multiple application server installations).
Comment 5 jrojcek 2007-10-17 12:32:32 UTC
If GlassFish or Tomcat wasn't installer together with NB, then the NB uninstaller should not offer to uninstall it.
Comment 6 dlipin 2007-10-17 12:36:02 UTC
Now installer offers only those GlassFish/Tomcat that were installed using the NetBeans 6.0 Installer (during one or 
different installation sessions) and that are integrated with the current netbeans IDE using special system properties 
in <nbdir>/etc/netbeans.conf.
Comment 7 jrojcek 2007-10-17 13:13:23 UTC
So then I don't understand what the reporter meant by:
"When I installed NetBeans I selected that it should use my pre-installed version of GlassFish and Apache Tomcat."

How's that possible?
Comment 8 dlipin 2007-10-17 13:24:30 UTC
If I am not mistaken, it can be done in the following way (for example):

Install NetBeans 6.0 M10 (with Tomcat 6.0.13 and GlassFish b53)
Uninstall NetBeans 6.0 M10 (leave Tomcat and GlassFish on the disk)
Install latest daily (javaee) without GlassFish and Tomcat : as the result the "pre-installed" Tomcat6.0.13 and GFb53 
will be integrated with this NetBeans IDE.
Run uninstaller for this latest daily.
And get the situation described at the beginning of the issue...
Comment 9 jrojcek 2007-10-17 14:01:23 UTC
If that's the scenario, then I think it's okay to ask for uninstalling GlassFish and Tomcat again (in the latest daily uninstaller). You should show the 
GlassFish/Tomcat version number so that there's no confusion.
Comment 10 big_al 2007-10-17 15:32:08 UTC
I believe it is the scenario described by dlipin on Wed Oct 17 12:24:30 +0000 2007.

Since I've had multiple installations of NetBeans 6.0 on my machine the old configuration was probably picked up. 
However, I still think the uninstall dialogue for misleading as I was assuming that it was refering to the application
servers that I had selected when I installed NetBeans.

This leads me to another thing which probably needs a separate issue - when uninstalling it should offer to remove the
settings in the user directory.

Comment 11 dlipin 2007-10-17 15:39:18 UTC
Have you remove %USERPROFILE%/.nbi directory by chance?
If you really did that then your scenario can really occur.
It is also possible that this issue is result of Issue 115451.
Probably the %USERPROFILE%/.nbi/registry.xml file is corrupted (wrong xml or even zero in bytes) - in that case the 
situation you described can occur. 

Was there a warning shown at the beginning of uninstallation (or installation) that said the following:
> The local registry (%USERPROFILE%/.nbi/registry.xml) could not be loaded, or was loaded partially.
> The installer can continue to work normally, but doing so may result in a corrupted global registry.
> Choose Yes to continue, No to exit the installer.
?

Comment 12 big_al 2007-10-17 15:42:36 UTC
No, there was no warning. As I mentioned in the previous post - I forgot to clear my %USERDIR% prior to installing the
latest build.
Comment 13 dlipin 2007-10-17 15:56:53 UTC
please ignore my previous comment ("Have you remove %USERPROFILE%/.nbi directory by chance?..."), it was for another issue...
Comment 14 Jiri Rechtacek 2012-10-07 12:59:09 UTC
Assigned to new owner.