How to link a msvcr120.dll in an inverse recursive way after a Windows .exe binary deployment

BoQsc vaidas.boqsc at
Mon Sep 5 07:02:53 UTC 2022

On Sunday, 4 September 2022 at 22:05:24 UTC, ShadoLight wrote:
> On Sunday, 4 September 2022 at 15:16:47 UTC, BoQsc wrote:
>> **Folder structure**
>> .\msvcr120.dll
>> .\folder1\HelloWorld.exe
>> .\folder2\HelloWorld.exe
> You don't need to do this. msvcr120.dll is already shipped with 
> the DMD compiler at 
> [DMD-install-folder]\windows\bin64\msvcr120.dll. (It is also in 
> [DMD-install-folder]\windows\bin). You can access it directly 
> from there.

The problem is, D Language Compiler is not included along the 
Windows Operating System.
Neither msvcr120.dll is included along the Windows Operating 
You have to download it. No other way.

How can you download it, if your .exe binary that has the 
functionality to download it, cannot even be started due to 
msvcr120.dll not existing on the operating system.

You can try to use pre-existing Command Line Utilities like 
bitsadmin (Windows 7), curl (Windows 10), but really how can you 
interact with them from within D Language Binary if it can't even 

You can try to write a batch script for all that.

I really do not want to write batch scripts for the rest of my 
that's why I'm here in the D Language Forum.

> Copy the DLL to C:\Windows\System32\

It required administrator privilegies and this is only a 
HelloWorld example
of the D language deployed on computers, where the D language is 
yet to be installed.

More information about the Digitalmars-d-learn mailing list