예제 #1
0
        public static bool CheckShellContextMenuButton()
        {
            try
            {
                return(RegistryHelpers.CheckRegistry(ShellExtMenuFilesCmd, null, ShellExtPath) &&
                       RegistryHelpers.CheckRegistry(ShellExtMenuDirectoryCmd, null, ShellExtPath));
            }
            catch (Exception e)
            {
                DebugHelper.WriteException(e);
            }

            return(false);
        }
예제 #2
0
        public static bool CheckCustomUploaderExtension()
        {
            try
            {
                return(RegistryHelpers.CheckRegistry(ShellCustomUploaderExtensionPath, null, ShellCustomUploaderExtensionValue) &&
                       RegistryHelpers.CheckRegistry(ShellCustomUploaderCommandPath, null, ShellCustomUploaderCommandValue));
            }
            catch (Exception e)
            {
                DebugHelper.WriteException(e);
            }

            return(false);
        }
예제 #3
0
        public static bool CheckFirefoxAddonSupport()
        {
            try
            {
                return(RegistryHelpers.CheckRegistry(FirefoxNativeMessagingHosts, null, Program.FirefoxHostManifestFilePath) &&
                       File.Exists(Program.FirefoxHostManifestFilePath));
            }
            catch (Exception e)
            {
                DebugHelper.WriteException(e);
            }

            return(false);
        }
예제 #4
0
        public static bool CheckEditShellContextMenuButton()
        {
            try
            {
                return(RegistryHelpers.CheckRegistry(ShellExtEditMenuJpegCmd, null, ShellExtEditPath) && RegistryHelpers.CheckRegistry(ShellExtEditMenuPngCmd, null, ShellExtEditPath));
            }
            catch (Exception e)
            {
                DebugHelper.WriteException(e);
            }

            return(false);
        }