public static void Uninstall() { var server = new RenamerContextMenu(); var registrationType = Environment.Is64BitOperatingSystem ? RegistrationType.OS64Bit : RegistrationType.OS32Bit; ServerRegistrationManager.UnregisterServer(server, registrationType); ServerRegistrationManager.UninstallServer(server, registrationType); }
public static bool IsInstalled() { try { var server = new RenamerContextMenu(); var registrationType = Environment.Is64BitOperatingSystem ? RegistrationType.OS64Bit : RegistrationType.OS32Bit; var info = ServerRegistrationManager.GetServerRegistrationInfo(server, registrationType); if (info == null) { return(false); } } catch { return(false); } return(true); }