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.
[ BUILD # : 201109290601 ] [ JDK VERSION : 1.6.25 ] I use silent uninstall (from http://kenai.com/projects/nb-nightly-updater). This uses the following command to uninstall java: "C:\Program Files\NetBeans Dev 201109290601\uninstall.exe" --silent After uninstall, the program-folder isn´t empty! There are still the junit-jars at the programm-folder.
Created attachment 111411 [details] Programm-folders oft the last three installations.
This problem occurs every time when --silent switch is used. http://kenai.com/projects/nb-nightly-updater isn't necessary.
I've finally figured out where the problem is. If you are using classic uninstaller (I mean non-silent) you have some more options. You can choose to remove whole NB installation directory and to remove userdir. In silent mode you don't have these options and default options are used there - to do not remove everything from NB installation directory and to do not remove userdir. There are several ways to solve this issue, so we only need to consider, which one is the best.
(In reply to comment #3) > I've finally figured out where the problem is. > > If you are using classic uninstaller (I mean non-silent) you have some more > options. You can choose to remove whole NB installation directory and to remove > userdir. In silent mode you don't have these options and default options are > used there - to do not remove everything from NB installation directory and to > do not remove userdir. > > There are several ways to solve this issue, so we only need to consider, which > one is the best. On NB Installers meeting was agreed a new switch to uninstaller would solved this problem.
Created attachment 116952 [details] Patch Patch contains diff, nlw.exe - native installer launcher and two new Java classes - options. Patch is adding two new options for launching uninstaller in silent mode.
Assigned to Jiri to verify and apply the patch.
My $0.02... Check spelling, please :) "--remove-instal-folder" It should be, at least, "--remove-install-folder" :) BTW, do you really need those CLI options? It is enough to pass those system properties via -J-DpropName=propValue, e.g. uninstall.exe --silent -J-Dremove.netbeans.installdir=true -J-Dremove.netbeans.userdir=true Note that NBI (nbi/*) is used not only for NetBeans IDE installer but also for some other unrelated products (some are based on NB platform, and some are not), and having NetBeans-specific command-line options (which actually has affect only in installer/* classes) may confuse those users.
After all we have decided to mark this bug as won't fix because there is no plan to add some more options (there is a workaround in comment 7) and we haven't found any other - better solution to fix it.