{"id":69038,"date":"2023-12-31T09:05:45","date_gmt":"2023-12-31T03:35:45","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=69038"},"modified":"2026-03-09T12:19:08","modified_gmt":"2026-03-09T06:49:08","slug":"net-framework-please-set-registry-key-installroot","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/net-framework-please-set-registry-key-installroot\/","title":{"rendered":".NET Framework Error: Please set registry key InstallRoot"},"content":{"rendered":"<p>When you install a program that uses .NET Framework, the following error message may appear:<\/p>\n<pre class=\"err\">.NET Framework initialization Error\n\nPlease set registry key \nHKLM\\SOFTWARE\\Microsoft\\.NETFramework\\InstallRoot  to\npoint to the .NET Framework installation<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/12\/netfx_installroot_error.png\" alt=\".NET Framework InstallRoot error\" width=\"394\" height=\"172\" class=\"alignnone size-full wp-image-69040\" \/><\/p>\n<p>Running the .NET Framework Repair tool or removing and reinstalling .NET Framework may not resolve the error.<\/p>\n<h2>Cause<\/h2>\n<p>The above error occurs due to the missing <strong>InstallRoot<\/strong> registry value in one or both of the following keys:<\/p>\n<pre class=\"registry\">\nHKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\nHKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\.NETFramework\n<\/pre>\n<h2>Resolution<\/h2>\n<p>To fix the .NET Framework initialization Error, please create the missing values in the registry.<\/p>\n<h3>Option 1: Use the REG file to restore the missing values<\/h3>\n<p>To restore the InstallRoot registry values, download and run <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/12\/netfx_installroot_fix.zip\">netfx_installroot_fix.reg<\/a> (zipped)<\/p>\n<p>Unzip and run the enclosed REG file.<\/p>\n<p>Click Yes to confirm.<\/p>\n<hr>\n<h3>Option 2: Create the values manually<\/h3>\n<ol>\n<li>Launch Regedit.exe and go to:\n<pre class=\"registry\">HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework<\/pre>\n<\/li>\n<li>In the right pane, create a new string value (REG_SZ) named <strong>InstallRoot<\/strong> (if it doesn&#8217;t already exist.)<\/li>\n<li>Set the value data of <strong>InstallRoot<\/strong> to <strong>C:\\Windows\\Microsoft.NET\\Framework64\\<\/strong><\/li>\n<li>Next, go to the following branch:\n<pre class=\"registry\">HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\.NETFramework<\/pre>\n<\/li>\n<li>In the right pane, create a new string value (REG_SZ) named <strong>InstallRoot<\/strong> (if it doesn&#8217;t already exist.)<\/li>\n<li>Set the value data of <strong>InstallRoot<\/strong>  to <strong>C:\\Windows\\Microsoft.NET\\Framework\\<\/strong><\/li>\n<li>Exit the Registry Editor.<\/li>\n<\/ol>\n<p><strong>Note:<\/strong> The 2nd location above (i.e., the WOW6432Node branch) doesn&#8217;t exist if you&#8217;re using Windows 10\/11 32-bit edition. In that case, skip the 2nd location. To determine if you&#8217;re using 32-bit or 64-bit edition, see this article <a href=\"https:\/\/www.winhelponline.com\/blog\/find-windows-10-build-version-edition-bit\/\">How to Find Your Windows 10\/11 Build Number, Version, Edition and Bitness<\/a>.<\/p>\n<p>That should resolve the .NET Framework &#8220;InstallRoot&#8221; error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install a program that uses .NET Framework, the following error message may appear: .NET Framework initialization Error Please set registry key HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\InstallRoot to point to the .NET Framework installation Running the .NET Framework Repair tool or removing and reinstalling .NET Framework may not resolve the error. Cause The above error occurs due to &#8230; <a title=\".NET Framework Error: Please set registry key InstallRoot\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/net-framework-please-set-registry-key-installroot\/\" aria-label=\"Read more about .NET Framework Error: Please set registry key InstallRoot\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,869],"tags":[191,441],"class_list":["post-69038","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-error-messages","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":76820,"url":"https:\/\/www.winhelponline.com\/blog\/powershell-error-v4-net-framework-not-installed\/","url_meta":{"origin":69038,"position":0},"title":"PowerShell: Version v4.0.30319 of the .NET Framework is not installed","author":"Ramesh","date":"October 19, 2024","format":false,"excerpt":"When you open Windows Terminal (PowerShell), the following error may occur: Version v4.0.30319 of the .NET Framework is not installed and it is required to run version 3 of Windows PowerShell. If you run PowerShell.exe, the window may close immediately. Running the .NET Framework Repair tool or removing and reinstalling\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":".net installroot fix - powershell closes","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6011,"url":"https:\/\/www.winhelponline.com\/blog\/dism-restorehealth-error-0x800f081f-windows-10\/","url_meta":{"origin":69038,"position":1},"title":"[Fix] DISM and .NET Framework 3.5 Error 0x800F081F","author":"Ramesh","date":"December 9, 2017","format":false,"excerpt":"When running the following DISM command, the error 0x800F081F may appear in some systems. The same error occurs when installing the .NET Framework in Windows 10. Dism \/Online \/Cleanup-Image \/RestoreHealth Error: 0x800f081f The source files could not be found. Use the \"Source\" option to specify the location of the files\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"dism restorehealth wim success","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/12\/dism-wim-success.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/12\/dism-wim-success.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/12\/dism-wim-success.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/12\/dism-wim-success.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6740,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800f0954-net-framework-3-5-optional-feature-dism\/","url_meta":{"origin":69038,"position":2},"title":"[Fix] Error 0x800F0954 Installing .NET Framework 3.5 or Any Optional Feature","author":"Ramesh","date":"November 6, 2018","format":false,"excerpt":"When you attempt to install .NET Framework 3.5 or any other optional feature using \"Windows Features\" (optionalfeatures.exe) dialog or using DISM command-line, error 0x800F0954 may popup. After enabling .NET Framework 3.5 and clicking OK, the following error may appear: Windows couldn't complete the requested changes. The changes couldn't be completed.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"enable feature .net framework 3.5","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/net-framework-features.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":80283,"url":"https:\/\/www.winhelponline.com\/blog\/fix-net-framework-3-5-error-0x800f080c\/","url_meta":{"origin":69038,"position":3},"title":"How to Fix .NET Framework 3.5 Error 0x800F080C","author":"Ramesh","date":"February 20, 2026","format":false,"excerpt":"When you install the .NET Framework 3.5 using DISM in Windows 10 or 11, you may encounter error 0x800F080C. The full error message is below: Error: 0x800f080c Feature name NetFX3 is unknown. A Windows feature name was not recognized. Use the \/Get-Features option to find the name of the feature\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"iso netfx3 cab.","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx-80070490-cab-iso.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx-80070490-cab-iso.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx-80070490-cab-iso.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":55748,"url":"https:\/\/www.winhelponline.com\/blog\/powershell-closes-machine-config-parser-error\/","url_meta":{"origin":69038,"position":4},"title":"PowerShell Closes Immediately When Launched; Machine.Config Parser Error","author":"Ramesh","date":"June 23, 2023","format":false,"excerpt":"When you run PowerShell.exe, the PowerShell window may open and close immediately before you can read the error message. Running PowerShell.exe from an existing Command Prompt window, or opening PowerShell via Windows Terminal may show the error message: The shell cannot be started. A failure occurred during initialization: The type\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"machine.config fix file","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":34978,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x80070490-net-framework-3-5\/","url_meta":{"origin":69038,"position":5},"title":"How to Fix .NET Framework 3.5 Error 0x80070490","author":"Ramesh","date":"March 31, 2023","format":false,"excerpt":"Several older programs require .NET Framework 3.5 to run. When you attempt to run a legacy program, it prompts you to install the framework. The prompt reads, \"An app on your PC needs the following Windows feature: .NET Framework 3.5.\" When you install .NET Framework 3.5 (NetFx3) on demand, you\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"netfx3 error 0x80070490","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx3-error-0x80070490-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx3-error-0x80070490-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/netfx3-error-0x80070490-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/69038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=69038"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/69038\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=69038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=69038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=69038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}