This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Uninstall problem

0

I download Wireshark 2.0.0 32bit release. And install in my programms folder (D:/Programms/). I reboot my system and uninstall Wireshark (this version does not work on my WinXP). And after that all other files in /Programs derictory was disappeared. Its look like Wireshark uninstall deleted hims.

asked 09 Dec '15, 12:37

Nielo's gravatar image

Nielo
6112
accept rate: 0%

I repeat install-uninstallation. And this happened again. Be careful.

(09 Dec '15, 13:16) Nielo

Very odd.

I tried to replicate it here, using Win 8.1 x64, I created a directory D:\Programs, and installed Wireshark to D:\Programs\Wireshark. The uninstall removed the Wireshark subdirectory but left D:\Programs intact along with some other entries I'd made in there.

I then repeated the install, this time into D:\Programs, this installed Wireshark directly into the specified directory. Uninstalling then tried to delete the directory but was unable to and displayed an error message to indicate this, but apart from that all traces of Wireshark were removed, and the D:\Programs directory was left as before.

What did you enter into the installer directory field? It should be the name of a directory specifically for Wireshark. Presuming you use D:\Progams for multiple applications, you should enter D:\Programs\Wireshark.

(09 Dec '15, 14:12) grahamb ♦

Thanks for answer.

Yes, if select "D:\Programs" in itstall setup file browser, automatically creates \Wireshark, so I install it in D:\Programs\Wireshark.

But I think the problem is not here. In first and second time I install all components, including USBPcap. When the USBPcap installation is to start up, I also select D:\Programs. And when I launched Wireshark uninstallation and choose delete all components (including USBPcap), all other files in \Programs were removed. Here is my mistake, it was necessary to manually create a subfolder for USBPcap. But why USBPcap uninstallation setup deleted other files in \Programs? Should not it only delete USBPcap-files?

(09 Dec '15, 15:22) Nielo

I already had USBPCap installed so didn't install or remove it in my tests.

I'll have to try that.

(09 Dec '15, 15:24) grahamb ♦

One Answer:

0

This is indeed an issue with USBPcap installer that assumes USBPcap will be installed in a dedicated folder. I modified it locally and we will try to ship a modified version of the installer in the next Wireshark release. Thanks for reporting the issue.

Edit: the patch set can be found here https://code.wireshark.org/review/#/c/12546/ and will be integrated for Wireshark 2.0.1

answered 10 Dec '15, 05:23

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

edited 11 Dec '15, 14:52

Wireshark also assumes a dedicated directory, but the uninstaller, on my machine at least, was unable to delete the common directory I installed it in.

Not sure if we can guard against that somehow.

(10 Dec '15, 08:02) grahamb ♦

We can at least modify the uninstaller script so that it does not erase the installation folder if not empty - what USBPcap installer was doing. :)

(10 Dec '15, 09:01) Pascal Quantin

I think that must be the case already then for Wireshark as I got an error message when it tried (or checked).

(10 Dec '15, 09:19) grahamb ♦

yes, we are not adding the evil /R flag to RMDir "$INSTDIR" :)

(10 Dec '15, 09:25) Pascal Quantin