Migrating an application that uses dynamic libraries to another computer

Thank you for coming to the question, perhaps you are the right person who knows the answer, I will be grateful for any help and advice.

The problem I had was this: I finished my application and wanted to transfer it to another computer, for a test. As it happens - there were mistakes. This one is specifically related to an error loading dynamic libraries (. dlls) from application files. The essence of the problem lies in the fact that on my computer without these libraries, the program does not run, and on another computer, it gives an error about the lack of libraries. I work in VS2019 (Visual Studio 2019), and in the program itself I use SFML, I connected all the libraries manually, NuGet packages gave an error in my other program, so I connected the libraries myself. Here is a list of the libraries that lie with the. exe file of my programs:

  • sfml-audio-2.dll
  • sfml-audio-d.dll
  • sfml-graphics-2.dll
  • sfml-graphics-d-2.dll
  • sfml-network-2.dll
  • sfml-network-d-2.dll
  • sfml-system-2.dll
  • sfml-system-d-2.dll
  • sfml-window-2.dll
  • sfml-window-d-2.dll
  • These go by default from SFML
  • msvcp100d.dll
  • msvcp110.dll
  • msvcp110d.dll
  • msvcr100d.dll
  • msvcr110.dll
  • msvcr110d.dll
  • These are related to Visual C++ and do not work without them
  • openal32.dll [Sound library, like it came with SFML, but since I don't remember, I put it separately]

Https://support.microsoft.com/ru-ru/help/2977003/the-latest-supported-visual-c-downloads - the official link to the tool. It is advised to download and install it, they say it will solve all the problems at once, so no, it will not solve it, maybe it will help someone, but personally nothing has changed for me. The second option is to install Visual C++ on the computer where you need the program and transfer it, if it is already worth it, then reinstall it, but I'm not sure what it is it will help, so if you don't advise it, I won't do it. If this is the solution, then tell me how you can make the installer so that you do not have to install Visual C++ separately?

If this is not the correct / not the only solution to this problem, please tell me how it can be solved. Thank you

Author: SSS_Krut, 2020-07-30