当前位置:网站首页>体验Navicat Premium 16,无限重置试用14天方法(附源码)
体验Navicat Premium 16,无限重置试用14天方法(附源码)
2022-06-27 18:55:00 【墨天轮】
前几天又重装了一下电脑~
于是又要安装Navicat Premium的时候,发现官方发布了 Navicat Premium 16 版本!
下载安装完发现UI比之前确实清新了不少~ LOGO也变成金色的了!

哎嗨,问题来了。咋激活呢?
翻了一圈,博主并没有找到开源代码的破解激活工具。
于是我就想起了之前的重置试用的路子!

Navicat Premium 15 怎么激活?
参考本公众号”全球主机测评“此次推送第二篇文章。
替换DLL
目前网上有不少替换DLL文件激活的方式。如果大家想用自己去搜索吧。
我这里不推荐了。你懂的~
无限试用
这是目前主要推荐的方式!
原理:
就是清除注册表相关信息实现再次试用14天!
该方式试用目前 Navicat Premium 大部分的版本。
好处:
不担心各种软件后门问题!
缺点:
每次启动软件都会提示试用时间,仅支持 Navicat Premium
好嘞,下面就介绍一下如何重置试用!
手动
打开系统注册表找到以下位置
HKEY_CURRENT_USER\Software\Classes\CLSID\{FCABAC0C-4447-F047-51F3-7E27276ECA6F}\Info
提醒一下:不同系统红色ID 可能不一样哦~!
直接将 Info 目录删除即可!

脚本
以下是 Python3 代码保存成 xx.py
直接执行: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))
没有python 环境的可以直接下载下面的exe,直接运行即可!
链接:
https://url85.ctfile.com/f/21259585-530797466-57a016
(访问密码:9197)
手动执行比较麻烦可以利用 Windows 定时任务!
本文转载自网络。
点击“阅读原文”去我的网站,获取更多教程。
边栏推荐
- Installing services for NFS
- BTC and eth recapture the lost land! Leading the market recovery? Encryption will enter the "ice age"!
- Explore gaussdb and listen to what customers and partners say
- Love math experiment | phase 9 - intelligent health diagnosis using machine learning method
- 分享一次自己定位 + 解决问题的经历
- 难怪大家丢掉了postman而选择 Apifox
- Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
- NVIDIA three piece environment configuration
- 基于微信小程序的高校党员之家服务管理系统系统小程序#毕业设计,党员,积极分子,学习,打卡,论坛
- Oracle architecture summary
猜你喜欢

探秘GaussDB,听听客户和伙伴怎么说

Pfsense plus22.01 Chinese customized version release

Zhongang Mining: the largest application field of new energy or fluorite

优维HyperInsight:掘金164.94亿美元可观测市场的“金锄头”?

Recommended practice sharing of Zhilian recruitment based on Nebula graph

低代码开发平台是什么?为什么现在那么火?

SQL审核平台权限模块介绍和账号创建教程

BTC and eth recapture the lost land! Leading the market recovery? Encryption will enter the "ice age"!

UOS prompts for password to unlock your login key ring solution
一段时间没用思源,升级到最新的 24 版后反复显示数据加密问题
随机推荐
This is the same as data collection. Can you define a parameter as last month or the previous day, and then use this parameter in SQL?
Graduation design of police report convenience service platform based on wechat applet
Original translation | comparison of machine learning model service tools: kserve, Seldon core and bentoml
SQL reported an unusual error, which confused the new interns
Zhongang Mining: the largest application field of new energy or fluorite
Flutter隐藏AppBar的返回按钮
Select auto increment or sequence for primary key selection?
花了6个月时间完成本科优秀毕业设计,我做了什么?
Shuttle hides the return button of the AppBar
Cortical traceability analysis of ERP
一段时间没用思源,升级到最新的 24 版后反复显示数据加密问题
Cerebral Cortex:从任务态和静息态脑功能连接预测儿童数学技能
Batch insert data using MySQL bulkloader
探秘GaussDB,听听客户和伙伴怎么说
Oracle architecture summary
Leetcode 821. Minimum distance of characters (simple) - sequel
[array]bm99 clockwise rotation matrix - simple
实际工作中用到的shell命令 - sed
Love number experiment | Issue 7 - Financial Crisis Analysis Based on random forest
MongoDB简介及典型应用场景