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