Fixing "Please set registry key HKLM \ Software \ Microsoft \ .NETFramework \ InstallRoot to point to the .NET Framework install location" error on a 64-bit Windows PC

Fixing "Please set registry key HKLM \ Software \ Microsoft \ .NETFramework \ InstallRoot to point to the .NET Framework install location" error on a 64-bit Windows PC

by Mihai Neacsu on 6 April 2017 · 79942 views

I recently got this error when trying to run/update WhatsApp's desktop client on my 64-bit Windows 8.1 PC:

.NET Framework Initialization Error

Please set registry key HKLM\Software\Microsoft\.NETFramework\InstallRoot to point to the .NET Framework install location

3 full Fixing Please set registry key HKLM  Software  Microsoft  NETFramework  InstallRoot to point to the NET Framework install location error on a 64bit Windows PC

Trying to re-install several .Net Framework packages did not do the trick for me, so I kept on searching for solutions.

The .NET Framework Repair Tool provided by Microsoft did not work either. I even tried running the System File Checker tool (basically doing "sfc /scannow" in an elevated cmd) to no avail.

CCleaner showed a few registry errors related to the .NET Framework as well.

After trying numerous approaches to fix this, I found the following solution to be working in my case. I manually added the following string values in the Windows Registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework
InstallRoot=C:\Windows\Microsoft.NET\Framework\

AND

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
InstallRoot=C:\Windows\Microsoft.NET\Framework64\

Adding just one of these string values did not work, so both are needed.

Here's how to do it, step by step:

1. Open regedit.exe by pressing Win+R, typing regedit.exe and then press Enter. More on the Windows Registry Editor here.

2. In the left pane, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework.

3. If the InstallRoot string is not present, simply right-click an empty space in the right pane and choose New > String Value. Name it InstallRoot.

1 full Fixing Please set registry key HKLM  Software  Microsoft  NETFramework  InstallRoot to point to the NET Framework install location error on a 64bit Windows PC

4. Double-click the newly created InstallRoot string and fill in the Value data field with C:\Windows\Microsoft.NET\Framework\.

2 full Fixing Please set registry key HKLM  Software  Microsoft  NETFramework  InstallRoot to point to the NET Framework install location error on a 64bit Windows PC

5. Repeat the process for the second location. In the left pane, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.

6. If the InstallRoot string is not present, simply right-click an empty space in the right pane and choose New > String Value. Name it InstallRoot.

7. Double-click the newly created InstallRoot string and fill in the Value data field with C:\Windows\Microsoft.NET\Framework64\.

That's it, you can now close the Registry editor window. Things should work as expected now.

In my particular case, WhatsApp's desktop client resumed working normally afterwards.

Comments (3)
kshu's profile
kshu on 24 Sep 2021
Glad to hear this fix still works :).
puertasdcielo's profile
puertasdcielo on 18 Sep 2021
Thank you so much,for saving me so much time ,and saving 10 years of accounting software, I tired so many other methods and only this one worked. I uninstalled programs that i thought were not necessary such as Microsoft C++ and framework, but i ruined my pc but you saved me in the end.
askomra's profile
askomra on 28 Jan 2021
Hey man, I'm reading this on 28/01/2021 and I have to say thank U
Man you save my life, thanks a lot
Featured Articles