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 57467 - [41cat] Uninstaller failed
Summary: [41cat] Uninstaller failed
Status: RESOLVED WONTFIX
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-04-05 09:04 UTC by cberger
Modified: 2005-09-05 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example of vpd.properties for NB 4.1 dev (1.09 KB, text/plain)
2005-04-05 16:44 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cberger 2005-04-05 09:04:55 UTC
[ JDK VERSION : 1.5.0_02 ]

I was trying to remove a Q-build of early march to install a daily snap. I got the following, very weird, messages, and the Q-build failed to uninstall:

Welcome to the Uninstall Wizard for ERROR: cannot load product /product.xml: java.io.IOException: entry cb5a12cc089661a67d0e28f98618fe76/product.xml does not exist in C:\Program Files\netbeans-4.1dev\_uninst\uninstall.jar
The Wizard will uninstall ERROR: cannot load product /product.xml: java.io.IOException: entry cb5a12cc089661a67d0e28f98618fe76/product.xml does not exist in C:\Program Files\netbeans-4.1dev\_uninst\uninstall.jar from your computer. To continue, choose Next.

If I press next, I get a panel with just "Important Information" in it.

If I press next, I get:

Errors occurred during the uninstallation.
cannot load product /product.xml: java.io.IOException: entry cb5a12cc089661a67d0e28f98618fe76/product.xml does not exist in C:\Program Files\netbeans-4.1dev\_uninst\uninstall.jar
 The uninstaller has not removed your IDE user directory. If you wish, you can delete it manually. By default, the user directory is located in the .netbeans/dev folder within your Documents and Settings directory.

Don't know if that matter, but I think I removed the user directory manually before doing the uninstall.
Comment 1 mslama 2005-04-05 16:43:42 UTC
It looks like uninstaller data are corrupted. No idea what could cause this.
What NB build is it? I can try to reproduce it.

You can remove NB installation manualy on Windows as follows:
1.Delete NetBeans from disk.
2.Remove desktop icons and Programs Start menu item for NetBeans.
3.In registry remove uninstall item:
Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\274c5407c4fa26908310cb5c1c4100de
Last key is product ID for NetBeans. Last 6 chars are reserved for version.
4.Update file vpd.properties. (Check its content and if it contains only NB
items you can delete it.) It is text file used by Install Shield to control
installed components. It is present in Win system dir C:\WinNT or C:\Windows.
Use find to locate it. Problem is it is shared by all installers based on
Install Shield so simply deleting could break some other installers/uninstallers
functionality if it contains other data.

I attach example of vpd.properties for NB 4.1 dev on Linux. On Windows it is
similar. So you can guess what to delete from vpd.properties if you think it is
better not to delete it.
Comment 2 mslama 2005-04-05 16:44:36 UTC
Created attachment 21394 [details]
Example of vpd.properties for NB 4.1 dev
Comment 3 cberger 2005-04-05 17:08:44 UTC
Thanks for all the uninstalling info.

I don't know why the uninstaller data was corrupted.
I installed the same version on both my workstation and laptop,
but only my workstation had problem, and it is the first time
I find that problem, so I think it's gonna be hard for you (or
anybody) to reproduce my exact corruption, but corrupting a file
by adding and removing bytes randomly is not hard ;)

This is a random problem (I've added RANDOM keyword), but maybe
the uninstaller could be made a little bit more robust and handle
these type of failures better?

Comment 4 mslama 2005-04-05 17:22:44 UTC
It would be nice to be able to handle this better. But I am afraid it is not
possible. This is handled by Install Shield. AFAIK InstallShield uses md5sum to
verify its data. I can only check given Q-build installer/uninstaller. Do you
remember what Q-build was it? (product.xml contains whole product configuration.
Without it installer/uninstaller cannot do anything.)
Comment 5 mslama 2005-07-01 14:25:01 UTC
Closing as WONTFIX. We cannot fix this problem. Looks like uninstaller data got
corrupted somehow.