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 187411 - netbeans beta will not uninstall
Summary: netbeans beta will not uninstall
Status: RESOLVED INCOMPLETE
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 05:02 UTC by tbrunhoff
Modified: 2011-11-10 10:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nbi log files (2.18 MB, application/octet-stream)
2010-06-10 17:43 UTC, tbrunhoff
Details
"Configuring the installer ..." (11.71 KB, image/png)
2011-08-18 23:05 UTC, nopivnick
Details
Avast! warning (26.25 KB, image/png)
2011-08-18 23:06 UTC, nopivnick
Details
Debug log (w/ Avast! running) (40.85 KB, text/plain)
2011-08-18 23:08 UTC, nopivnick
Details
Debug log (w/ Avast! disabled) (45.04 KB, text/plain)
2011-08-18 23:08 UTC, nopivnick
Details
Debug log (w/ Avast! disabled; run as administrator) (508.58 KB, text/plain)
2011-08-19 14:15 UTC, nopivnick
Details
"NetBeans Installer lock file exists" (24.68 KB, image/png)
2011-08-19 14:29 UTC, nopivnick
Details
hs_err_pid* logs (41.20 KB, application/zip)
2011-08-19 14:33 UTC, nopivnick
Details
uninstall error report (43.61 KB, text/plain)
2011-10-17 18:13 UTC, richllittle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2010-06-10 05:02:21 UTC
I installed netbeans 6.9 beta some time ago, then installed 6.9 RC2 (without uninstalling the 6.9 beta). Now I cannot uninstall the 6.9 beta. The entire installation appears to be all there, but running the uninstaller does nothing (it says "configuring the installer" and then exits). This is true whether run from the uninstaller in the install directory or the control panel for programs and features.

I was then able to uninstall 6.9RC2, but afterwards, 6.9beta still would not uninstall.

I then tried to reinstall 6.9beta but it complained that the install dir was not empty. Only when I moved the install directory aside was I able to install 6.9beta, then uninstall.

Seems like a warning would be a good idea. Or better.
Comment 1 dlipin 2010-06-10 06:15:37 UTC
It should not exit silently, I agree with you. If it happens again, run uninstaller with "--verbose --output out.txt" arguments to check what is wrong. Feel free to reopen the issue and attach out.txt file. 

Thanks for report anyway.
Comment 2 tbrunhoff 2010-06-10 06:26:24 UTC
Did you attempt to repeat the described procedure?
Comment 3 tbrunhoff 2010-06-10 06:41:18 UTC
It appears you have misread the report. Your comments address the inappropriate response of the uninstaller. The problem is prior to that: the rc2 installer damaged the beta installation so that it could not be installed; and it did not warn that the beta should be installed first. What is the status for every other version of installer where a previous version has not been uninstalled prior to installing the new version.

It appears you have a pretty serious problem with the installer.
Comment 4 dlipin 2010-06-10 06:59:30 UTC
> Did you attempt to repeat the described procedure?
Yes, I did. No problem for me, at least, on Windows XP. Which OS are you using?

> Your comments address the inappropriate response of the uninstaller. 
Not really. I just say that uninstaller should not exit silently just after "Configuring Installer". If it really happens then it is the bug and that's why I have asked for out.txt file in this case. Usually if installer database is corrupted the installer shows a warning about that.


> The problem is prior to that: the rc2 installer damaged the beta installation so that it could not be installed; 
Damage should not happen, I agree with you. Now we have to find out the reason why it happens.
Please attach ~/.nbi/log/* files.
Please reproduce the issue and attach ~/.nbi/registry.xml after 6.9beta installation and after 69rc2 installation.

> and it did not warn that the beta should be installed first. 
Haven't caught what you are talking about here. Maybe "uninstalled first"? It should not, really, warn to do that. All versions are independent...
Comment 5 tbrunhoff 2010-06-10 17:37:18 UTC
> Which OS are you using?
Windows 7. Sorry... should have included that.

> I just say that uninstaller should not exit silently just after
"Configuring Installer". 
Agreed. But that's an issue that's downstream from the install issue.

> Please attach ~/.nbi/log/* files.
See new attachment.

>Please reproduce the issue and attach ~/.nbi/registry.xml after 6.9beta
>installation and after 69rc2 installation.
I'll have to leave reproduction in your capable hands :-) My work environment is netbeans on linux, and I only get rare opportunity to dink around with java on windows on some late evenings.

>> and it did not warn that the beta should be installed first. 
> Haven't caught what you are talking about here. Maybe "uninstalled first"?
Right, uninstalled first.

> It should not, really, warn to do that. All versions are independent...
Ok. *Should* be independent anyway.

I should note that (as a practice) I don't install in Program Files, but rather a hierarchical subject catalog. In this case, c:/apps/programming/<netbeans folder>
Comment 6 tbrunhoff 2010-06-10 17:43:10 UTC
Created attachment 99988 [details]
nbi log files

This set of nbi files appears to cover the first install of the beta and rc2 and actions following that.
Comment 7 dlipin 2010-06-18 11:17:33 UTC
Thanks. I wish I could reproduce it by myself but unfortunately it seems some environment related issue. In other words, you are the only one who ever experience it and reported it to us :) And you are the only one who can help us identify that. We can only help you with that by suggesting steps which can result in finding the root cause or the solution to the problem.

It looks like either uninstaller just finishes its work without any message (crashes) or just hangs without any notification.

To check whether the first option (crach) really happens, you can run uninstaller with "--verbose --output out.txt" parameter, and when uninstaller again disappear without doing something, look into resulting out.txt to check for any errors there. Please attach it to this issue so that I check it as well. 

To theck whether the second option ("hang") happens, you can do the same thing (run with "--verbose --output out.txt" arguments). Attach resulting out.txt to the issue and I'll look into that. Additionally, in this case, the java.exe and uninstall.exe processes will stay running - you can check that using Task Manager.

If the "hang" option really happens, please run from command line:
cd YOUR_NB_INSTALL_DIR
uninstall.exe --extract
"C:\Program Files\Java\jre6\bin\java.exe" -verbose -jar bundle.jar --target nb-base 6.9.0.0.201004200117 --force-uninstall > out2.txt 2>&1

(that is for beta build, for FCS the version in the arguments would be 6.9.0.0.0, for RC2 - 6.9.0.0.2).
Wait when the issue occurs (wait at least 10 seconds), press Ctrl-Break (in the same command window) a few times with a couple of seconds delay between each one. After that please attach out2.txt file.


BTW, do you have something at C:\Program Files\Java\jre6\lib\endorsed (if it exist certainly)?
Do you have any accessibility tools installed?
Comment 8 dlipin 2010-07-09 19:52:42 UTC
We haven't heard from the reporter for a long time. Unfortunately we can't reproduce it in our environment.  tbrunhoff, feel free to reopen and provide requested info.
Comment 9 nopivnick 2011-08-18 23:03:56 UTC
Hello.

I'm having a problem that's similar enough to that of the original poster I though perhaps I might reopen the ticket.

My environment:

* Windows 7 Ultimate 64-bit
* NetBeans v6.9
* Avast! Free v6.0.1203

I've tried uninstalling NetBeans from the Programs and Features Control Panel as well as running the Uninstaller.exe directly.

Like the original reporter, a "Configuring the Installer" dialog appears (screenshot), the progress bar completes and then the process quits without any further messaging.

It may or may not be of interest but my Avast! gets freaked out when I try and run the uninstaller (screenshot) and suggests I run it in a sandbox, which I opt not to do.

I've run uninstaller with the --verbose --output out.txt parameters twice, once with Avast! running (out.text) and once with Avast! disabled (out2.text).
Comment 10 nopivnick 2011-08-18 23:05:33 UTC
Created attachment 110103 [details]
"Configuring the installer ..."
Comment 11 nopivnick 2011-08-18 23:06:36 UTC
Created attachment 110104 [details]
Avast! warning
Comment 12 nopivnick 2011-08-18 23:08:03 UTC
Created attachment 110105 [details]
Debug log (w/ Avast! running)
Comment 13 nopivnick 2011-08-18 23:08:38 UTC
Created attachment 110106 [details]
Debug log (w/ Avast! disabled)
Comment 14 Yulia Novozhilova 2011-08-19 12:04:24 UTC
nopivnick, could you please attach also C:\Program Files\NetBeans 6.9\hs_err_pid*.log files here. 
About Avast! warning, it is recommended to disable firewall, antivirus, and monitoring applications before you start installation.
http://netbeans.org/community/releases/69/install.html#troubleshooting
Thanks
Comment 15 nopivnick 2011-08-19 14:15:45 UTC
Created attachment 110111 [details]
Debug log (w/ Avast! disabled; run as administrator)

here's another uninstall --verbose log; this time I explicitly ran the uninstaller 'as Administrator' even though the icon for uninstall.exe already had the admin privilege overlay.

explicitly running the uninstaller.exe as administrator produced new messaging (screenshot): "NetBeans Installer lock file exists"
Comment 16 nopivnick 2011-08-19 14:21:34 UTC
Comment on attachment 110111 [details]
Debug log (w/ Avast! disabled; run as administrator)

NOTE: I think I forgot to generate the --verbose log the first time I ran uninstall.exe as admin, which may be why there are so many 'file does not exist' entries?
Comment 17 nopivnick 2011-08-19 14:29:12 UTC
Created attachment 110112 [details]
"NetBeans Installer lock file exists"
Comment 18 nopivnick 2011-08-19 14:33:27 UTC
Created attachment 110113 [details]
hs_err_pid* logs

(In reply to comment #14)
> nopivnick, could you please attach also C:\Program Files\NetBeans
> 6.9\hs_err_pid*.log files here.

done.
Comment 19 Yulia Novozhilova 2011-09-13 12:18:44 UTC
Thanks.
As for "NetBeans Installer lock file exists" message - just remove .nbilock file from .nbi folder in your userdir. It wasn't deletd by installer because of that JRE crash.

It looks like problem with 64 bits Java on Windows Vista. Could you please try to remove 64bit Java, install 32bit and see if that helps.
Comment 20 richllittle 2011-10-17 18:13:58 UTC
Created attachment 112146 [details]
uninstall error report

I also have this problem, and have attached the error report from the uninstall program

windows 7 Ultimate 64 bit

Rich Little
Comment 21 Jiri Rechtacek 2011-11-10 10:03:17 UTC
As I new owner installer component I lost in this issue. Did you someone reproduce it in NB7.1? If so, describe your steps for easy reproduction. Thanks