当前位置:网站首页>Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)

Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)

2022-06-27 21:15:00 Ink Sky Wheel

( Click on the above ↑↑↑ Focus on , Get more tutorials )

I reinstalled the computer a few days ago ~

So I have to install Navicat Premium When , Found that the official release Navicat Premium 16 edition !

After downloading and installing, I found UI It is much fresher than before ~ LOGO It has also become golden !

Hi , The problem is coming. . How to activate ?

A turn , Bloggers have not found any open source code cracking and activation tools .

So I thought of the way to reset and try before !

Navicat Premium 15 How to activate ?

Refer to this official account ” Global host evaluation “ The second article is pushed this time .

Replace DLL

At present, there are many replacements on the Internet DLL File activation mode . If you want to search by yourself .

I don't recommend it here . You'll see ~

Unlimited trial

This is the main recommended method at present !

principle :

It is to clear the relevant information of the registry and try again 14 God !

Try this method now Navicat Premium Most versions .

benefits :

Don't worry about all kinds of software backdoors !

shortcoming :

Each time you start the software, you will be prompted with the trial time , Support only Navicat Premium

OK , Here is how to reset the trial !

Manual

Open the system registry and find the following location

HKEY_CURRENT_USER\Software\Classes\CLSID\{FCABAC0C-4447-F047-51F3-7E27276ECA6F}\Info

As a reminder : Different systems red ID It may be different ~!

Direct will Info Just delete the directory !

Script

Here are Python3 The code is saved as xx.py

Direct execution :python3 xx.py

import winreg
import os
import time
from collections import deque
from typing import Any
 
 
# root
HKEY_CURRENT_USER = winreg.HKEY_CURRENT_USER
 
# key path
PREMIUM_PATH = r'Software\PremiumSoft'
CLSID_PATH = r'Software\Classes\CLSID'
 
 
def get_sub_keys(root: Any, reg_path: str) -> list:
    """This function will retrieve a list of sub-keys under the path
    of `root` + `reg_path`.
 
    Args:
        root(Any): Root registry.
        reg_path(str): The relative specific path under the root registry.
 
    Returns:
        The list of sub-keys.
    "
""
    key_result = winreg.OpenKeyEx(root, reg_path)
    i: int = 0
    sub_keys_list: list = list()
 
    while True:
        try:
            sub_keys = winreg.EnumKey(key_result, i)
            sub_keys_list.append(sub_keys)
            i += 1
        except Exception as e:
            break
    
    return sub_keys_list
 
 
def get_all_keys(root: Any, key_path: str) -> list:
    """Get the list of absolute path of all entries under the
    specified path through the deque.
 
    Args:
        root(Any): Root registry.
        key_path(str): The relative specific path under the root registry.
 
    Returns:
        A list of all entries under the keys.
    "
""
    all_keys_list: list = list()
 
    qeque = deque()
    qeque.append(key_path)
 
    while len(qeque) != 0:
        sub_key_path = qeque.popleft()
 
        for item in get_sub_keys(root, sub_key_path):
            item_path = os.path.join(sub_key_path, item)
 
            if len(get_sub_keys(root, item_path)) != 0:
                qeque.append(item_path)
                all_keys_list.append(item_path)
            else:
                all_keys_list.append(item_path)
    
    return all_keys_list
 
 
def main():
    """The entry function to be executed.
 
    Returns:
        None
    "
""
    clsid_all_keys_list = get_all_keys(HKEY_CURRENT_USER, CLSID_PATH)
    premium_all_keys_list = get_all_keys(HKEY_CURRENT_USER, PREMIUM_PATH)
    premium_sub_keys_list = [os.path.join(PREMIUM_PATH, item) for item in get_sub_keys(HKEY_CURRENT_USER, PREMIUM_PATH)]
    print(f"premium_sub_keys_list: {premium_sub_keys_list}")
 
    for clsid_item in clsid_all_keys_list:
        if "Info" in clsid_item:
            clsid_item_prefix = os.path.dirname(clsid_item)
            print(f"# Info item: {clsid_item}")
            winreg.DeleteKeyEx(HKEY_CURRENT_USER, clsid_item)
            winreg.DeleteKeyEx(HKEY_CURRENT_USER, clsid_item_prefix)
    
    # The outermost folder is not deleted.
    for premium_item in reversed(premium_all_keys_list):
        if "Servers" in premium_item:
            print(f"Tips: Servers => {premium_item} will not be deleted.")
            pass
        elif premium_item in premium_sub_keys_list:
            print(f"Tips: Servers => {premium_item} will not be deleted.")
            pass
        else:
            winreg.DeleteKeyEx(HKEY_CURRENT_USER, premium_item)
 
 
if __name__ == "__main__":
    print("Start to delete registry...")
    main()
    print("Task done.""Windows will closed after 5 seconds...", sep="\n")
 
    for i in range(5):
        time.sleep(1)
        print("*" * (i + 1))

No, python The environment can be downloaded directly exe, Just run directly !

link :

https://url85.ctfile.com/f/21259585-530797466-57a016

( Access password :9197)

Manual execution is troublesome and can be used Windows Timing task !

This article is reproduced from the Internet .

Click on “ Read the original ” Go to my website , Get more tutorials .

原网站

版权声明
本文为[Ink Sky Wheel]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206271855243640.html

随机推荐