How can I obtain few of vc runtime dll's to include in my installer?

0

I've tried for many hours to find the solution for my problem and couln't find it even here.

So I have that application.exe that I am writing the Wix Toolset installer for it. Unfortunately I have no access to the source code but I hope I can do my task without it.

The problem is that it runs correctly with vc_redist.x64 installed on the end user's machine, but not without it.

What I've tried:

  1. I was trying to run it without those runtimes and got into "couldn't find vcruntime140.dll error"

So I pasted it in the app's folder and tried to move on with dll's and the next error occured as shown in picture:

the application was unable to start correctly (0xc000007b). Click OK to close the application

  1. I've read those runtimes after installation go into eg. "C://Windows/System32" so I tried to go to that location and

dir > before.txt

and

dir > after.txt

after installing the vc++ runtime.

and copy pasted the files that occured only after the installation.

  1. I tried to use gumpbin.exe from Visual Studio that gave given output:

found some dependencies

and the Dependency Walker gave me kind of similar output.

Dependency Walker output the same libs as direct ones, but also gave imo about hundreds of indirect ones. So I thought copy/pasting all of them is a really hard job without software to help.

  1. I was also thinking about forcing vc_redist.x64.exe to extract files to folder given by me so I could use them for my purpose and the only parameter that looked fine was /layout but it only copied the whole .exe to another folder. Didn't extract it.

My questions is: is there an easy way of obtaining the vc_redist.x64 libraries so I could author only the needed ones in my installer?

Any help will be appreciated. Thanks in advance!

Edit:

My goal is to secure newbie end users from being unable to run the application when they accidentally uninstall the VC runtime, therefore having vc_redist.exe as prerequisite in bootstrapper is unfortunetely not the case

dll
vcredist
asked on Stack Overflow May 14, 2021 by tabaluga • edited May 14, 2021 by tabaluga

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0