mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
parent
a6a4bfcf3b
commit
0dabaa15fb
2 changed files with 9 additions and 0 deletions
|
@ -48,6 +48,9 @@ public class Msys2ToolChainProvider implements IToolChainProvider {
|
||||||
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
||||||
String compKey = uninstallKey + '\\' + subkey;
|
String compKey = uninstallKey + '\\' + subkey;
|
||||||
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
||||||
|
if (displayName == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (on64bit) {
|
if (on64bit) {
|
||||||
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
||||||
if (addToolChain64(manager, registry, compKey)) {
|
if (addToolChain64(manager, registry, compKey)) {
|
||||||
|
|
|
@ -95,6 +95,9 @@ public class MinGW {
|
||||||
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
||||||
String compKey = uninstallKey + '\\' + subkey;
|
String compKey = uninstallKey + '\\' + subkey;
|
||||||
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
||||||
|
if (displayName == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (on64bit) {
|
if (on64bit) {
|
||||||
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
||||||
String installLocation = registry.getCurrentUserValue(compKey, "InstallLocation"); //$NON-NLS-1$
|
String installLocation = registry.getCurrentUserValue(compKey, "InstallLocation"); //$NON-NLS-1$
|
||||||
|
@ -230,6 +233,9 @@ public class MinGW {
|
||||||
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
for (int i = 0; (subkey = registry.getCurrentUserKeyName(uninstallKey, i)) != null; i++) {
|
||||||
String compKey = uninstallKey + '\\' + subkey;
|
String compKey = uninstallKey + '\\' + subkey;
|
||||||
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
String displayName = registry.getCurrentUserValue(compKey, "DisplayName"); //$NON-NLS-1$
|
||||||
|
if (displayName == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (on64bit) {
|
if (on64bit) {
|
||||||
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
if (MSYS2_64BIT_NAMES.contains(displayName)) {
|
||||||
String home = registry.getCurrentUserValue(compKey, "InstallLocation"); //$NON-NLS-1$
|
String home = registry.getCurrentUserValue(compKey, "InstallLocation"); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue