Ask Your Question
0

can't find msvcp140_1.dll

asked 2022-03-10 07:55:28 +0000

vemson gravatar image

I did a build of wireshark 3.4.5 with Qt 5.15.1 using Visual Studio 2019 on WINDOWS. I tested it and delivered it to my customer base and things are working fine.

I delivered the build to one particular customer and when he ran the .exe it came back and said "can't find msvcp140_1.dll". We check and verified the .dll exists in his System32 directory. I had him install the redistributable just to make sure.

What could be causing that error?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-03-10 09:18:19 +0000

grahamb gravatar image

A few things to consider here. The Wireshark installer attempts to install a copy of the VC++ redistributable, and MS is less than helpful in ensuring the return values make sense, often returning an error code that actually means the installation succeed but with a minor observation, e.g. a newer version exists. The Wireshark devs have been playing whack-a-mole trying to handle this.

As you're building an old version from the old-stable branch (3.4.12 is the latest for old-stable) you may be missing fixes that would correct this issue, so please try a build using 3.4.12. You might also consider moving to the current stable branch and give your users the benefit of all the fixes and improvements added to the current build 3.6.2.

The version of the vc-redist used by the installer is usually obtained from the Visual Studio installation use to build Wireshark, the CMake configuration step prints out the path in use, it's possible there might be issues with the vc-redist you're currently using depending on the specific updates you have applied to Visual Studio.

As you state you're distributing to a customer, if using npcap, you should ensure compliance with the license for npcap which has restrictions on distribution. Wireshark itself relies on the GNU General Public License, version 2 for distribution which you should also observe.

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: 2022-03-10 07:55:28 +0000

Seen: 278 times

Last updated: Mar 10 '22