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 209234 - Uninstaller does nothing if target component is not found in registry
Summary: Uninstaller does nothing if target component is not found in registry
Status: VERIFIED WONTFIX
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 12:54 UTC by Jiri Kovalsky
Modified: 2012-04-25 14:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Warning dialog offering a chance to only delete installation directory. (50.04 KB, image/png)
2012-03-06 12:54 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2012-03-06 12:54:02 UTC
Created attachment 116392 [details]
Warning dialog offering a chance to only delete installation directory.

Linux Mint 12 (Lisa) with Gnome 3

Description:
============
It seems like either uninstallation does not work if target component nb-base/7.1.1.0.0 in registry is not found or the functionality is not implemented. When user agrees that this error can be ignored, "Uninstall" button does not remove anything and only changes to "Finish". Screenshot of the warning is attached.

Steps to reproduce:
===================
1. Install NB 7.1.1 & JDK 6 Update 31 bundle into ~/NetBeans/7.1.1 directory.
2. Rename ~/NetBeans/7.1.1 directory to ~/NetBeans/7.1.1_Old
3. Install NB 7.1.1 & JDK 7 Update 3 bundle into ~/NetBeans/7.1.1 again.
4. Run ~/NetBeans/7.1.1_Old/uninstall.sh script.
5. After successful uninstallation run ~/NetBeans/7.1.1/uninstall.sh script.
6. Uninstaller warns about missing target component and asks for confirmation.
7. Click "Yes" button and then "Uninstall".
8. Nothing happens. Only uninstaller shows "Finish" button.
Comment 1 Libor Fischmeistr 2012-04-25 13:41:53 UTC
I didn't try to reproduce this problem on Mint but on Ubuntu and I believe it couldn't have some effect on behavior. I got almost the same result. But there is a small mistake in behavior what you have described here. As the first you run uninstaller in ~/NetBeans/7.1.1_Old. The ~/NetBeans/7.1.1 installation was successfully removed. Then you run again uninstaller in ~/NetBeans/7.1.1_Old, there the rest your description is right.

The behavior described by me is expected and correct because you simply cannot rename the installation folder. Why? In .nbi folder (.nbi/product-cache) there are stored installed-files.xml.gz archives containing xml information about installed files. These xmls are created by installer and reused by uninstaller. Uninstaller also deletes them.

Example of one file description = entry:

<entry type="file" size="473" md5="a215c8a6b5a0bbd1f8968d7f0be861d0" jar="false" packed="false" signed="false" modified="1323284371000" permissions="664">C:/Program Files/NetBeans 7.1/websvccommon/update_tracking/org-netbeans-modules-websvc-saas-services-weatherbug.xml</entry>

As you can see, there is the absolute path to that file, so it cannot be deleted while uninstalling from renamed directory.
Comment 2 Jiri Kovalsky 2012-04-25 14:43:53 UTC
Yes, you are right. I had a mistake in my steps to reproduce. I admit the usecase is artificial but I filed it anyway to see if it can be fixed or not. Thanks for the thorough investigation.