I need check msvcr120.dll is exist. if not exist add msvcr120.dll to system32 directory. How can I do this with Inno Setup?
Asked
Active
Viewed 295 times
1 Answers
2
You probably shouldn't install that file directly by itself. Since it is part of the Visual C++ 2013 Redistributables, you should run the redistributable installer (available at https://www.microsoft.com/en-us/download/details.aspx?id=40784) from your installer.

mirtheil
- 8,952
- 1
- 30
- 29
-
And that's covered in [How to install Microsoft VC++ redistributables silently in Inno Setup?](https://stackoverflow.com/q/24574035/850848) – Martin Prikryl Oct 10 '18 at 12:07
-
But if I'm copy manualy msvcr120.dll to system32 directory problem fixed. Why I must install Visual C++ 2013 Redistributables? – Makarna35 Oct 10 '18 at 23:21
-
1Copying one file manually is not the Microsoft recommended way of dealing with system files. What happens if you copy an older file than already exists? Or a newer file that has a different dependency. The redistributables are provided for a reason. – mirtheil Oct 11 '18 at 12:02
-
You are right.. – Makarna35 Oct 11 '18 at 21:38
-
An example, that shows what might go wrong: https://stackoverflow.com/q/66590707/850848 – Martin Prikryl Mar 12 '21 at 06:37