<div dir="rtl"><div dir="ltr">getSystemRegistryString is used to find the newest Visual Studio installation. The existing logic is:<br></div><div dir="ltr">1) Find newest Visual Studio</div><div dir="ltr">2) For the newest, check if there InstallDir</div>

<div dir="ltr"><br></div><div dir="ltr">This logic fails after installing a Visual Studio Runtime which is newer than the install Visual Studio IDE. In such case, 1) find the newer runtime which does not have InstallDir since it's not the IDE.</div>

<div dir="ltr"><br></div><div dir="ltr">To handle such situations, a combined logic implemented in this patch is:</div><div dir="ltr">Find newest Visual Studio for which InstallDir exists.</div><div dir="ltr"><br></div><div dir="ltr">

In addition, I renamed a local variable named value to dvalue since it was shadowing an outer local variable named value.</div><div dir="ltr"><br></div><div dir="ltr">This was tested on a machine where VS 2012 IDE + VS 2013 runtime are installed.</div>

<div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div>