Browse Source

Fix #2705: Replace '.dll' with '.exe' in shell handler

pull/2713/head
Siegfried Pammer 3 years ago
parent
commit
613f0833ea
  1. 3
      ILSpy/Options/MiscSettings.cs

3
ILSpy/Options/MiscSettings.cs

@ -18,6 +18,7 @@ @@ -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 @@ -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)

Loading…
Cancel
Save