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 202962 - Silent uninstall is incomplete
Summary: Silent uninstall is incomplete
Status: RESOLVED WONTFIX
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 07:58 UTC by stefan79
Modified: 2012-04-25 09:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Programm-folders oft the last three installations. (2.52 MB, application/octet-stream)
2011-10-03 07:59 UTC, stefan79
Details
Patch (134.12 KB, patch)
2012-03-20 21:00 UTC, Libor Fischmeistr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-10-03 07:58:51 UTC
[ 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.
Comment 1 stefan79 2011-10-03 07:59:44 UTC
Created attachment 111411 [details]
Programm-folders oft the last three installations.
Comment 2 Libor Fischmeistr 2012-02-22 12:45:08 UTC
This problem occurs every time when --silent switch is used. http://kenai.com/projects/nb-nightly-updater isn't necessary.
Comment 3 Libor Fischmeistr 2012-02-23 14:15:04 UTC
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.
Comment 4 Jiri Rechtacek 2012-03-06 13:42:34 UTC
(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.
Comment 5 Libor Fischmeistr 2012-03-20 21:00:41 UTC
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.
Comment 6 Libor Fischmeistr 2012-03-20 21:02:24 UTC
Assigned to Jiri to verify and apply the patch.
Comment 7 dlipin 2012-03-21 05:50:27 UTC
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.
Comment 8 Libor Fischmeistr 2012-04-25 09:52:47 UTC
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.