diff --git a/ILSpy/Options/MiscSettings.cs b/ILSpy/Options/MiscSettings.cs index b111508fc..0414d6ad8 100644 --- a/ILSpy/Options/MiscSettings.cs +++ b/ILSpy/Options/MiscSettings.cs @@ -18,6 +18,7 @@ using System; using System.ComponentModel; +using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Principal; @@ -75,7 +76,7 @@ namespace ICSharpCode.ILSpy.Options private void AddRemoveShellIntegration(object obj) { - string commandLine = NativeMethods.ArgumentArrayToCommandLine(Assembly.GetEntryAssembly().Location) + " \"%L\""; + string commandLine = NativeMethods.ArgumentArrayToCommandLine(Path.ChangeExtension(Assembly.GetEntryAssembly().Location, ".exe")) + " \"%L\""; if (RegistryEntriesExist()) { if (MessageBox.Show(string.Format(Properties.Resources.RemoveShellIntegrationMessage, commandLine), "ILSpy", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)