Please download netfx_location_fix.reg (zipped). Unzip and run it. Click Yes to confirm.
Src:
.NET Framework Error: Please set registry key InstallRoot: https://www.winhelponline.com/blog/net-framework-please-set-registry-key-installroot/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Attempting to install Discord I receive the error "Please set registry key HKLM\Software\Microsoft.NETFramework\InstallRoot to point to the .NET Framework install location. I have attempted to uninstall/reinstall .NET Framework, I've attempted to change the registry to point somewhere else, nothing has fixed it. I would really prefer not to have to do a restart. I am running Windows 11; everything that requires .NET Framework will not work on my computer. I have attached the log from Discord's install attempt as well, and have attempted via the regular app installer and through the Microsoft Store.
9564> 2022-05-22 13:37:25> Program: Starting Squirrel Updater: --install .
9564> 2022-05-22 13:37:25> Program: Starting install, writing to C:\Users\Redacted\AppData\Local\SquirrelTemp
9564> 2022-05-22 13:37:25> Program: About to install to: C:\Users\Redacted\AppData\Local\Discord
9564> 2022-05-22 13:37:25> SingleGlobalInstance: Grabbing lockfile with timeout of 00:00:10
9564> 2022-05-22 13:37:25> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Redacted\AppData\Local\SquirrelTemp
9564> 2022-05-22 13:37:25> CheckForUpdateImpl: Remote version 1.0.9004 differs from local
9564> 2022-05-22 13:37:25> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
9564> 2022-05-22 13:37:26> ApplyReleasesImpl: Writing files to app directory: C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\app.ico to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\app.ico
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\d3dcompiler_47.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\d3dcompiler_47.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\chrome_200_percent.pak to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\chrome_200_percent.pak
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\chrome_100_percent.pak to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\chrome_100_percent.pak
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\Discord.exe to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\Discord.exe
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\ffmpeg.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\ffmpeg.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\icudtl.dat to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\icudtl.dat
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\installer.db to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\installer.db
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\libEGL.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\libEGL.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\libGLESv2.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\libGLESv2.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\resources.pak to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\resources.pak
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\snapshot_blob.bin to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\snapshot_blob.bin
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\updater.node to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\updater.node
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\vk_swiftshader.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\vk_swiftshader.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\vulkan-1.dll to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\vulkan-1.dll
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\vk_swiftshader_icd.json to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\vk_swiftshader_icd.json
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Moving file C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\lib\net45\v8_context_snapshot.bin to C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\v8_context_snapshot.bin
9564> 2022-05-22 13:37:27> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\Discord.exe]
9564> 2022-05-22 13:37:29> Utility: Process Started: C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\Discord.exe --squirrel-install 1.0.9004, pid 10936
9564> 2022-05-22 13:37:30> Utility: Received exitcode 0 from process C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\Discord.exe
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: ran C:\Users\Redacted\AppData\Local\Discord\app-1.0.9004\Discord.exe, pid 12972
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: Starting fixPinnedExecutables
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: fixPinnedExecutables: newCurrentFolder: app-1.0.9004
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: File 'C:\Users\Redacted\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: File 'C:\Users\Redacted\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\On-Screen Keyboard.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: Updating shortcut C:\Users\Redacted\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc\Discord.lnk
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: Updating shortcut C:\Users\Redacted\Desktop\Discord.lnk
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: Fixing up tray icons
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.9004
9564> 2022-05-22 13:37:30> ApplyReleasesImpl: cleanDeadVersions: exclude current version folder app-1.0.9004
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Please download netfx_location_fix.reg (zipped). Unzip and run it. Click Yes to confirm.
Src:
.NET Framework Error: Please set registry key InstallRoot: https://www.winhelponline.com/blog/net-framework-please-set-registry-key-installroot/
Wow, you made that seem incredibly easy! It's working now. Thank you so much!
Microsoft Windows [Version 10.0.22621.2861]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Redacted>reg.exe query HKLM\SOFTWARE\Microsoft.NETFramework
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework
Enable64Bit REG\_DWORD 0x1
InstallRoot REG\_SZ C:\Windows\Microsoft.NET\Framework64\
UseRyuJIT REG\_DWORD 0x1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\Advertised
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\AssemblyFolders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\NGen
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\NGenQueue
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\policy
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\Security
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v2.0.50727
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\Windows Presentation Foundation
C:\Users\Redacted>reg.exe query HKLM\SOFTWARE\Wow6432Node\Microsoft.NETFramework
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\Advertised
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\AssemblyFolders
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\Fusion
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\NGen
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\NGenQueue
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\policy
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\Security
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v1.0
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v2.0.50727
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\v4.0.30319
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\Windows Presentation Foundation
From a Command Prompt window, run:
reg.exe query HKLM\SOFTWARE\Microsoft.NETFramework
and
reg.exe query HKLM\SOFTWARE\Wow6432Node\Microsoft.NETFramework
Please post the output here.