mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Improved MSVC detection fixes #929
This commit is contained in:
parent
be92da8f3b
commit
2d117232e1
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ public class VSInstallationRegistry {
|
|||
String versionFilterRange = "[" + baseVersion.toString() + "," + upperBound + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
String vsInstallationLocation[] = ProcessOutputUtil.getAllOutputFromCommand("cmd", "/c", //$NON-NLS-1$//$NON-NLS-2$
|
||||
"\"\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Installer\\vswhere.exe\"\"", //$NON-NLS-1$
|
||||
"-products", "*", "-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||
"-version", versionFilterRange, "-property", "installationPath"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
if (vsInstallationLocation == null || vsInstallationLocation.length == 0
|
||||
|| vsInstallationLocation[0].isEmpty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue