TechBuzzPro

Change Windows Kit Installation Path – Quick Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can change the Windows Kit common installation path by editing the registry or by using the Visual Studio Installer; both methods let you redirect future kit installs to a folder of your choice.

What You'll Need

  • Administrator rights on the Windows PC
  • Visual Studio Installer (installed with Visual Studio or available from Microsoft)
  • Registry Editor (regedit.exe) – built into Windows
  • A backup of the registry or a system restore point (highly recommended)
  • Enough free space on the target drive for the kit files

Step-by-Step

  1. Close any running instances of Visual Studio. Open Task Manager and end the devenv.exe process if it is still active. This prevents the installer from locking files while you change settings.
  2. Decide which method to use. The Visual Studio Installer method changes the default location for new kit components only; the registry method changes the path that the Windows SDK tooling reads at runtime. Use the Installer method for a clean, supported change, and the registry method if you need the new path to be recognized by command‑line tools immediately.
  3. Method A – Visual Studio Installer
    1. Launch the Visual Studio Installer from the Start menu.
    2. Click the Modify button next to your installed Visual Studio edition.
    3. In the workloads list, locate the Desktop development with C++ workload (or any workload that includes the Windows 10/11 SDK).
    4. On the right side, expand the Individual components tab.
    5. Scroll down to the Windows 10 SDK (or the specific SDK version you need) and note the current install location shown under the component name.
    6. Click the small gear icon (⚙️) next to the component – if the UI shows a gear, it opens a dialog where you can specify a custom installation path. If the gear is not present, the Installer uses the global installation location set in step g.
    7. Click Change install location at the bottom of the window, then browse to the folder where you want the kits stored (e.g., D:\WindowsKits). Confirm the path.
    8. Press Modify to apply the change. The Installer will move any missing components to the new folder; existing files remain where they are, but future updates will use the new location.
  4. Method B – Registry Edit
    1. Press Win + R, type regedit, and press Enter. Accept the UAC prompt.
    2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots. On a 64‑bit system you may also need to check HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots for the 32‑bit view.
    3. Locate the string values named KitsRoot10 (for Windows 10 SDK) and/or KitsRoot81 (for older Windows 8.1 SDK). Their data is the current folder path, typically C:\Program Files (x86)\Windows Kits\10.
    4. Right‑click each value you want to change and select Modify. Replace the existing path with the new absolute path (e.g., D:\WindowsKits\10). Do not add trailing backslashes.
    5. Close Registry Editor and restart any command‑prompt or PowerShell windows that will use the SDK, because they cache the path at launch.
    6. If you have existing SDK files on the old drive, copy the entire folder tree to the new location before editing the registry, or else tools will fail to locate required binaries.
  5. Verify the change.
    • Open a new Developer Command Prompt for VS and run where winver.exe or reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10 to confirm the new path appears.
    • Start Visual Studio, create a simple C++ project, and build it. The output window should list the SDK include directory from the new location.
  6. Clean up the old folder (optional). After you have verified that builds succeed, you may delete the previous Windows Kits folder to reclaim space. Keep a backup for a few days in case a hidden component was missed.

Common Mistakes

  • Editing the wrong registry hive (e.g., using HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE), which leaves the system unchanged.
  • Forgetting to run Registry Editor as Administrator, resulting in “Access denied” errors.
  • Using a path that contains spaces without surrounding it with quotes in scripts; the SDK tools expect a plain string without extra characters.
  • Changing the path but leaving the original SDK files on the old drive, causing duplicate copies and wasted space.
  • Neglecting to restart Visual Studio or the command prompt, so the old cached path is still used.

Tips

  • Always create a System Restore point before touching the registry; this lets you roll back if something goes wrong.
  • Store the kits on a fast SSD to avoid slower compile times; the SDK includes many header files that are read frequently.
  • If you manage multiple machines, script the registry change with reg add in a batch file, but test on a single PC first.
  • Use environment variables (e.g., %ProgramFiles(x86)%) in custom scripts to keep paths portable.
  • When using the Visual Studio Installer, make sure the “Installation locations” setting under Tools > Options > Projects and Solutions > Locations does not override your custom kit path.

Troubleshooting

If the SDK still points to the old folder after you have edited the registry:

  1. Close all instances of Visual Studio, command prompts, and PowerShell windows. Then reopen them – the path is read at process start.
  2. Run reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10 to double‑check the value. If it shows the old path, repeat the edit and ensure you saved the change.
  3. Check for a second copy of the key under the WOW6432Node branch. On 64‑bit Windows both 32‑bit and 64‑bit views may be consulted by different tools.
  4. Verify that the new folder contains the required subfolders (Include, Lib, bin). Missing subfolders cause “cannot find file” errors during builds.
  5. If a Visual Studio update reverts the path, repeat the change after the update or lock the registry key permissions (right‑click the key → Permissions → deny write for Users).
  6. Should builds still fail with “SDK not found”, run the Repair option from the Visual Studio Installer for the Windows SDK component; the repair respects the new location.

Frequently Asked Questions

Will changing the path affect already installed SDK components?

No. Existing files stay where they were; the change only influences where new components are placed and where tools look for the SDK at runtime. If you move the old folder, you must copy its contents to the new location.

Do I need to reinstall Visual Studio after moving the kits?

Reinstalling is not required. Updating the registry or using the Installer is sufficient. Only a reinstall is needed if the Installer itself is corrupted.

Can I set a different path for each SDK version (e.g., 10.0.19041 vs 10.0.22000)?

Yes. The registry values KitsRoot10 and the subfolders under it (e.g., 10\bin\10.0.19041.0) can coexist. You can manually create separate root folders and point the registry to the parent directory; the SDK will still resolve the specific version subfolders.

Is it safe to place the kits on a network share?

It works, but performance may suffer and some tools expect local drive latency. Microsoft recommends a local SSD for best compile times.

What if I accidentally delete the registry key?

Restore the System Restore point you created, or manually recreate the KitsRoot10 string value with the default path (C:\Program Files (x86)\Windows Kits\10) and then re‑run the Installer to repair the SDK.