H
H
hesy2020-12-29 14:55:47
System administration
hesy, 2020-12-29 14:55:47

Windows components do not have Microsoft .NET Framework 4, how do I enable/reinstall it?

I use Windows 10, previously I installed docker, everything worked, then I deleted it, now I had to install it again, at startup it gives an error:

Docker startup error
---------------------------
Docker Desktop.exe - Ошибка инициализации платформы .NET Framework
---------------------------
Для запуска этого приложения сначала необходимо установить одну из следующих версий .NET Framework:

  v4.0.30319

 Обратитесь к издателю приложения за инструкциями по получению соответствующей версии .NET Framework.
---------------------------
ОК   
---------------------------



* the version of the requirement has changed, it used to be like 4.5-4.8, because. I *spoiler* demolished all versions of .net framwork later


After walking around the problem for half a day, I downloaded the .NET Framework installer, but it refuses to install, referring to the fact that the .NET Framework 4 is already installed
Installation error screen
5feb16b3378b8974867044.png


Googling some more, I opened Windows components, where it should be the following:
What should be (screenshot from the Internet)
5feb16eeb0f19868702455.png


But I do not have a tab with .NET Framework, but only this:
My screen
5feb1738a29e1835210859.png


When you try to include everything where there is .NET, when you re-open this menu, the daws fly off. Sometimes after installing the checkboxes, it asks for a reboot, and sometimes not, but this does not affect anything.

After googling this problem, I downloaded the .NET Framework Cleanup Utility, where the item "delete all versions of Windows 10" was selected, as a result, as everyone already understood, I demolished all versions, that now some programs refuse to work for me, including PowerShell .
Utility screen
5feb17660a1ad604551460.png


PowerShell error screenshot
5feb17dc28fb9242527356.png


As a result, as I thought, if I delete everything, then I can easily roll over .NET Framework 4 and other versions, but unfortunately the screen with an installation error is still relevant and asks to enable it in the components, but it is not there.

If you check the list of installed .NET Framewrok in the system, it shows that they are (even though I removed them)
Result
dir %WINDIR%\Microsoft.Net\Framework\v* /O:-N /B
v4.0.30319
v3.5
v3.0
v2.0.50727
v1.1.4322
v1.0.3705


Result of checking installed .NET Detector frameworks
<32Bit>
1.1.4322.2032
  ->C:\Windows\Microsoft.NET\Framework\v1.1.4322
2.0.50727.9151
  ->C:\Windows\Microsoft.NET\Framework\v2.0.50727

<64Bit>
2.0.50727.9151
  ->C:\Windows\Microsoft.NET\Framework64\v2.0.50727

==== Installed .NET Frameworks ====
.NET FW 1.1 SP 1 (CLR 1.1)
.NET FW 2.0 SP 2 (CLR 2.0)
.NET FW 3.0 SP 2 (CLR 2.0)
.NET FW 3.5 SP 1 (CLR 2.0)

==== Installed .NET Core Runtime 64bit ====
No .NET Core x64 Runtime

==== Installed .NET Core Runtime 32bit ====
No .NET Core x86 Runtime

==== Installed .NET Core Sdk 64bit ====
No .NET Core x64 Sdk

==== Installed .NET Core Sdk 32bit ====
No .NET Core x86 Sdk

==== Languages ====
< Installed Languages 3.0>
< Installed Languages 3.5.x>
< Installed Languages 4.x>

==== Updates ====
.NETFramework 
==== END REPORT ====


List of frameworks in the registry
5feb26510e6b3537954475.png


I have already completely given up, and I don’t know where to look for answers, Google along and reproached me, so the last hope is here.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sergey Karbivnichy, 2020-12-29
@hottabxp

Try the .NET Framework Repair Tool.

A
Alexander Lykasov, 2020-12-29
@lykasov-aleksandr

Try deleting the Release parameter from the branch from the registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
and run the installation again. Just make a copy of the branch first :)
Another option is to run the installer with the /repair option (maybe this only works with the full, offline installer).

M
MaxKozlov, 2020-12-29
@MaxKozlov

4.0 cannot be set to 10 because it implies built-in either 4.6 or something else.
Try to roll fresher - 4.8
And find a fresher docker, maybe it just doesn't fit your version of Windows

A
Akina, 2020-12-29
@Akina

Install .NET 5.0 right away .
Even if there are some problems with the current framework, they will be fixed.

K
kalapanga, 2017-03-04
@kalapanga

With the SetWindowPos function . Something like this:

with TForm1.Create(self) do
begin
  Show;
  SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE + SWP_NOMOVE + SWP_NOSIZE);
end;

Check the flags to your liking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question