First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Why does uninstall.exe /q remove Visual C++?

Hi all,

I'm working on a package to install/uninstall Wireshark. I've seen that running uninstall.exe /S will uninstall Visual C++ 2015-2019 Redistributable (x64), version 14.28.29334.

Is this intended? Can I prevent this from happening?

We have a different software on our machines that rely on Visual C++

Many thanks!

ITDude's avatar
1
ITDude
asked 2021-02-24 16:28:29 +0000
edit flag offensive 0 remove flag close merge delete

Comments

NSIS or msi or Portable Apps installer and which version of Wireshark?

grahamb's avatar grahamb (2021-02-24 17:53:29 +0000) edit

I'm guessing it's the NSIS installer (https://1.eu.dl.wireshark.org/win64/W...)

Version 3.4.3

ITDude's avatar ITDude (2021-02-25 08:26:14 +0000) edit

I can't see anything in the uninstall script to explicitly remove the redistributable. Are you sure it's the Wireshark uninstaller doing this?

grahamb's avatar grahamb (2021-02-25 09:22:50 +0000) edit

That's interesting, I'll check out what you just sent.

The method I'm using is writing a nuget package to essentially just runs uninstall.exe /S, so I can't say I'm doing anything weird here.

ITDude's avatar ITDude (2021-02-25 09:28:27 +0000) edit

@grahamb I resolved this.

Chocolatey's later versions will take a snapshot of the registry where add/remove programs gets its information from. When uninstalling Wireshark it will use some logic to work out that Visual C++ x64 <some version=""> wasn't there before, so Chocolatey will uninstall Visual C++.

Chocolatey have a couple of methods to prevent this:

  • pass --skipautouninstaller to the choco uninstall command
  • Add .skipAutoUninstaller file to your package.

You were right :)

ITDude's avatar ITDude (2021-03-02 12:39:47 +0000) edit
add a comment see more comments

1 Answer

0

I'm using Chocolatey version 0.10.15 to install/uninstall Wireshark.

Chocolatey's later versions will take a snapshot of the registry where add/remove programs gets its information from. When uninstalling Wireshark it will use some logic to work out that Visual C++ x64 <some version=""> wasn't there before, so Chocolatey will uninstall Visual C++ as Wireshark installed it in the first place.

Chocolatey have a couple of methods to prevent this if you so wish:

  • pass --skipautouninstaller to the choco uninstall command
  • Add .skipAutoUninstaller file to your package.
ITDude's avatar
1
ITDude
answered 2021-03-02 12:41:24 +0000, updated 2021-03-02 12:41:46 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer