Net Framework 4.0 Offline Installer Direct
If you are trying to run legacy software on a modern machine or setting up an older Windows environment, you have likely encountered the dreaded prompt:
Microsoft no longer hosts the 4.0 offline installer on its main download pages, but the original file (sha1 hash) can be verified via: https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe net framework 4.0 offline installer
dotNetFx40_Full_x86_x64.exe /passive