Ask Your Question
0

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

asked 2021-02-24 16:28:29 +0000

ITDude gravatar image

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!

edit retag flag offensive close merge delete

Comments

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

grahamb gravatar imagegrahamb ( 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 gravatar imageITDude ( 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 gravatar imagegrahamb ( 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 gravatar imageITDude ( 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 gravatar imageITDude ( 2021-03-02 12:39:47 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-02 12:41:24 +0000

ITDude gravatar image

updated 2021-03-02 12:41:46 +0000

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.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-02-24 16:28:29 +0000

Seen: 301 times

Last updated: Mar 02 '21