From 77661f8eff1593d924a9ba4ed810b8333f1a2bcc Mon Sep 17 00:00:00 2001 From: Pascal Rapicault Date: Fri, 20 Feb 2015 12:37:58 -0500 Subject: Bug 441098 - Windows - can not remove product.exe --- .../eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java index 2bfb6c830..0d3204027 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java @@ -283,6 +283,12 @@ public class BackupStore implements IBackupStore { } private boolean isEclipseExe(File file) { + String launcher = System.getProperty("eclipse.launcher"); //$NON-NLS-1$ + if (launcher != null) { + String base = new File(launcher).getName(); + if (file.getName().equalsIgnoreCase(base)) + return true; + } return file.getName().equalsIgnoreCase("eclipse.exe") || file.getName().equalsIgnoreCase("eclipsec.exe"); //$NON-NLS-1$ //$NON-NLS-2$ } -- cgit v1.2.3