<table><tr><td style="">Petross404 added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21589">View Revision</a></tr></table><br /><div><div><p>Hi,</p>

<p>I have installed Build Tools for VS2019 and the installation is at</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools</pre></div>

<p>I found this string inside HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\1eb19443 which honestly doesn't seem the proper key to extract this value but anyway.</p>

<p>A small preview of what I wrote is this:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">@echo off

setlocal enabledelayedexpansion
setlocal enableextensions

REM Visual Studio 2019 is tricky to be found.
set VS2019_KEY_NAME="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\1eb19443"
set VS2019_VAL_NAME="InstallLocation"
for /f "usebackq skip=2 tokens=3*" %%a in (`^(reg query %VS2019_KEY_NAME% /v %VS2019_VAL_NAME% ^| find "%VS2019_VAL_NAME%"^) 2^>nul `) do (
        set vs16_path=%%b
        if exist "!vs16_path!Common7\Tools\LaunchDevCmd.bat" (
                set "VS160COMNTOOLS=!vs15_path!Common7\Tools\"
                goto :end
        )
)</pre></div>

<p>No matter what I try I get the error "ERROR: The system was unable to find the specified registry key or value." Any ideas?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21589">https://phabricator.kde.org/D21589</a></div></div><br /><div><strong>To: </strong>sredman, KDevelop<br /><strong>Cc: </strong>kossebau, Petross404, apol, kfunk, brauch, kdevelop-devel, hmitonneau, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>