Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to uninstall #8049

Open
BruceKHaddon opened this issue Dec 13, 2024 · 22 comments
Open

Unable to uninstall #8049

BruceKHaddon opened this issue Dec 13, 2024 · 22 comments
Labels

Comments

@BruceKHaddon
Copy link

Apache NetBeans version

Apache NetBeans 23

What happened

I am attempting to uninstall NetBeans 23 and then to install NetBeans 24. But I get the pop-up message shown in the screen shot
dropped below. The message reads:
"The specified target component - nb-all/23 .0.0.240913.0 was not found in the registry. The installer can continue as if the target was not specified. Click yes to continue, No to exit the installer."
Clicking yes brings up the screen with the "Uninstall" button, which when clicked brings up a window with "Setup Complete" in the title, and a "Finish" button. Clicking this and the window goes away. NetBeans 23 is not uninstalled.

Screenshot 2024-12-13 142800

Language / Project Type / NetBeans Component

NetBeans Windows uninstaller

How to reproduce

The steps are provided in the description above. It is reproducible as it happens on every attempt. I have no idea how you might reproduce this yourself. Is there any way to use regedit to create the needed registry entry?

(On the first attempt to uninstall, there was a message to say that the registry.xml file in AppData, was in error or incomplete but this did not appear again on the later attempts, or the one used to obtain the screen image.)

As a note, I have installed (and uninstalled) every major and minor release of NetBeans since version 3.0. This is the first time this behavior has been seen.

Did this work correctly in an earlier version?

Apache NetBeans 22

Operating System

Windows Pro 22H2 (build 19045.5247)

JDK

JDK-23 (installed 2024-09-21)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

The are no messages in the messages.log file for this date (2024-12-13). Apparently the uninstall did not get far enough along to record any status.

Are you willing to submit a pull request?

No

@BruceKHaddon BruceKHaddon added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 13, 2024
@mbien
Copy link
Member

mbien commented Dec 14, 2024

Windows Pro 22H2 (build 19045.5247)

I am no windows expert but I don't know this particular version. I tried to uninstall NB 24 on win 11 (in virtualbox) and it worked fine for me. (haven't tried NB 23, but the installer didn't change between the two releases)

@mbien mbien added the pending-response Awaiting further information to be supplied label Dec 14, 2024
@mbien mbien removed the needs:triage Requires attention from one of the committers label Dec 15, 2024
@iamnaymur
Copy link

I'm having the same issue while uninstalling NetBeans 23.
Did you manage to resolve the problem?

@BruceKHaddon
Copy link
Author

BruceKHaddon commented Dec 16, 2024 via email

@mbien
Copy link
Member

mbien commented Dec 16, 2024

Windows Pro 22H2 (build 19045.5247)

I am no windows expert but I don't know this particular version. I tried to uninstall NB 24 on win 11 (in virtualbox) and it worked fine for me. (haven't tried NB 23, but the installer didn't change between the two releases)

i repeated the test with NB 23 and it worked too. Installed, launch, close, uninstall.

next I installed both NB 23 and 24 side by side and then uninstalled both again. All worked without problems. Win 11 with latest updates.

@ReneToonders
Copy link

Same problem here. Unable to uninstall Netbeans 23, because target component was not found in registry.

@refacteh
Copy link

Just want to add that I too have the same problem.

I installed NB 24, used it a few days and than tried to uninstall NB 23. Exactly the same issue as described in this issue.

Windows version: 23H2 (OS Build 22631.4602)

@armenios1710
Copy link

22 December 2024

I installed version 24 of NetBeans
And then, when I wanted to uninstall version 23, I have exactly the same message and it is impossible to uninstall it properly :-/

On a Windows 11 24H2

@dalbert2
Copy link

Same issue: windows 11, installed NB24, now NB 23 does not uninstall:
image

I had a similar issue with NB 21 which is removed from my programs list, but the folder Program Files\NetBeans-21 is still present and full.

@nexus3a
Copy link

nexus3a commented Dec 25, 2024

Same issue too.
And a reason - some info about version 23 from user profile .nbi/registry.xml is missed.
I found a solution.
You have to edit .nbi/registry.xml - add same elements as elements having version="24.0.0.241204.0" attribute, replacing attrubutes values to "23.0.0.240913.0" and replacing all "24" to "23" in added elements.
Save file and run uninstaller.

P.S.: Don't forget to make registry.xml backup before editing

@Chris2011
Copy link
Contributor

Chris2011 commented Dec 26, 2024

I also encountered this problem. Is it possible that this just happens with multiple installed versions of NetBeans? I have 20, 21, 22, 23. I wanted to remove 20, 21 and 23. NB 22 was still my production IDE. I also deleted .nbi folder nothing helped. And also NB 20 and NB 21 is not possible to deinstall. As far as I can remember I've never had the problem before 20. So was there a change from installer for 19 - 20? Or is this maybe due to a windows update?

I often have multiple installed NB instances due to testing and for me this is a common thing.

Win 11, 64bit, JDK 17

@Chris2011
Copy link
Contributor

Chris2011 commented Dec 26, 2024

Ok more investigation. If you install NetBeans and you uninstall it, everything is fine directly after it. If you manipulate the .nbi folder whyever this happens, after this you can't deinstall it anymore. I mean yes it seems clear because in the registry.xml there seems entries to remove from windows but if there are nothing inside anymore, due to deletion, IMHO it should run anyway but not cleaning up the registry.

The folder will be created again with an empty registry.xml file or just commong xml stuff without the registry entries needed.

@Chris2011
Copy link
Contributor

Chris2011 commented Dec 26, 2024

I will also try the fix from @nexus3a which I thought could help here. Thx for the hint. But still, the question stays, something happened to .nbi, maybe.

@mbien
Copy link
Member

mbien commented Dec 26, 2024

So was there a change from installer for 19 - 20? Or is this maybe due to a windows update?

no changes happened to the installers and they were all tested - they do also still work in vbox if you try install/uninstall. My hypothesis is too that something happens during windows upgrade which breaks the installation config so that it can't be uninstalled anymore. However, I can't test this since win 11 does not let me upgrade to 24H2 in vbox.

there is also #8058 (comment)

@mbien
Copy link
Member

mbien commented Dec 26, 2024

its likely time to retire NBI since it isn't maintained anyway and only used for windows, the community installers work fine.

@Chris2011
Copy link
Contributor

Same issue too. And a reason - some info about version 23 from user profile .nbi/registry.xml is missed. I found a solution. You have to edit .nbi/registry.xml - add same elements as elements having version="24.0.0.241204.0" attribute, replacing attrubutes values to "23.0.0.240913.0" and replacing all "24" to "23" in added elements. Save file and run uninstaller.

P.S.: Don't forget to make registry.xml backup before editing

Unfortunately it didn't workout for me, I don't get the error anymore, but the uninstaller stucks at 10% since 2h. Will check what I've missed.

@armenios1710
Copy link

I'm going to test the method proposed above.
But for now, since NetBeans doesn't offer a portable version and it's a bit of a hassle to launch two IDEs at the same time
I use version 23 for another project and version 24 for another
But I'm interested in a solution for uninstalling

@Chris2011
Copy link
Contributor

@armenios1710 We have a portable version, since forever. You just need to download the *-bin.zip file which is the very first link. Yes maybe we need to add the phrase "and portable" to it.

@armenios1710
Copy link

Oh yes, that's right, I just saw thanks, I just started using Netbeans to combine a web project and java for that
I was on Eclipse and Visual studio before and sometimes on Intellij

@BruceKHaddon
Copy link
Author

BruceKHaddon commented Dec 26, 2024 via email

@refacteh
Copy link

Just want to add that I too have the same problem.

I installed NB 24, used it a few days and than tried to uninstall NB 23. Exactly the same issue as described in this issue.

Windows version: 23H2 (OS Build 22631.4602)

Just to add some furter information to this. I have NetBeasn 12.5 installed since I have to work in an old Java 8 application and it's just not working well after 12.5 (At least not in my project). Looking in the registry.xml 12.5 is the only entry in there. This lead me to assume I won't be able to uninstall NB 24 either. Did not try it though since I need it. :)

In summary I have the following versions installed.

  • 12.5
  • 23
  • 24

@isidroreina
Copy link

isidroreina commented Jan 2, 2025

OK, this was the method I used to solve it:

  1. If you installed Netbeans 24, you should have seen a warning message about registry.xml. The message is right: you have lost all the information about NB 23 in registry.xml. I made a backup of registry.xml before installing NB24, so i could fix my registry.xml by adding the information about my NB 23 products from my backup to the registry.xml in .nbi with the NB 24 information.

  2. After you have fixed your registry.xml, look for the default-uri entry for an icon of a NB 24 product, mine was:
    file:/C:/Users/%USERNAME%/AppData/Local/Temp/nbi9486179336385376691/icon.png

  3. Then, look for the default-uri entry for an icon of a NB 23 product, mine was:
    file:/C:/Users/%USERNAME%/AppData/Local/Temp/nbi14108944310562826630/icon.png

  4. Go to the folder of step 1 (C:/Users/%USERNAME%/AppData/Local/Temp/nbi9486179336385376691/) and copy all the files to the folder of the step 2 (C:/Users/%USERNAME%/AppData/Local/Temp/nbi14108944310562826630/).

  5. Now you should be able to run the uninstaller.

It's too late for me to write a more detailed explanation (mainly about fixing registry.xml), but I hope this one gives the devs a way to solve it properly.

@mbien
Copy link
Member

mbien commented Jan 2, 2025

duplicate of #4530

@mbien mbien removed the pending-response Awaiting further information to be supplied label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants