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!
NSIS or msi or Portable Apps installer and which version of Wireshark?
I'm guessing it's the NSIS installer (https://1.eu.dl.wireshark.org/win64/W...)
Version 3.4.3
I can't see anything in the uninstall script to explicitly remove the redistributable. Are you sure it's the Wireshark uninstaller doing this?
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.
@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:
You were right :)