|
|
@ -18,6 +18,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.ComponentModel; |
|
|
|
using System.ComponentModel; |
|
|
|
|
|
|
|
using System.IO; |
|
|
|
using System.Reflection; |
|
|
|
using System.Reflection; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using System.Security.Principal; |
|
|
|
using System.Security.Principal; |
|
|
@ -75,7 +76,7 @@ namespace ICSharpCode.ILSpy.Options |
|
|
|
|
|
|
|
|
|
|
|
private void AddRemoveShellIntegration(object obj) |
|
|
|
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 (RegistryEntriesExist()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (MessageBox.Show(string.Format(Properties.Resources.RemoveShellIntegrationMessage, commandLine), "ILSpy", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) |
|
|
|
if (MessageBox.Show(string.Format(Properties.Resources.RemoveShellIntegrationMessage, commandLine), "ILSpy", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) |
|
|
|