terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Get Windows SDK path from Registry

Open tusharsnx opened this issue 6 months ago • 6 comments

Summary of the Pull Request

The Windows SDK path may not be the same on all PCs, especially when Visual Studio (VS) is installed on a drive other than C:/. However, we can read the correct path from the Registry, which this PR does.

Validation Steps Performed

  1. Install VS on E:/.
  2. Build the solution and see it passes without erroring on accessing MakePri.exe.

tusharsnx avatar Jun 16 '25 15:06 tusharsnx

I realized it's important to mention why this is important: I've a DevDrive at "E:/", and I'm trying to keep all dev related tools and projects on that drive exclusively. Wish C++ tools were smart enough to know where to look, but until then, we'd need to do this ourselves.

tusharsnx avatar Jun 17 '25 05:06 tusharsnx

I think we have a few more of these, actually - makepri and makeappx are both used by powershell scripts. Would you mind having a look at the others?

DHowett avatar Jun 19 '25 00:06 DHowett

Unfortunately, I can't repro the issue locally. @DHowett Could you take a look?

tusharsnx avatar Jun 20 '25 07:06 tusharsnx

I can raise PR solving the issue and passing the test case as well!

Ayush41 avatar Aug 15 '25 15:08 Ayush41

/azp run

DHowett avatar Dec 09 '25 17:12 DHowett

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 09 '25 17:12 azure-pipelines[bot]