Home  >  Article  >  Database  >  How to extend the 14-day trial period of Navicat?

How to extend the 14-day trial period of Navicat?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-20 11:54:0116010browse

How to extend the 14-day trial period of Navicat?

Linux

Linux下Navicat是通过脚本启动的,因此很容易在运行之前插一个脚本,由这个脚本来重置试用期。

注意脚本是Python3的,每次运行均会重置试用期到14天,要求64位版Navicat。

插在Navicat启动脚本之前即可。

#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import osimport re# 试用时间重置的正则
ps = ( re.compile(r'\[Software\\\\PremiumSoft\\\\Data\\\\\{[^\}]*\}\\\\Info\].*?\n[^\[]*'),        
re.compile(r'\[Software\\\\Classes\\\\CLSID\\\\\{[^\}]*\}\\\\Info\].*?\n[^\[]*'))
# user.reg 的路径regfile = os.path.join(os.environ['HOME'], '.navicat64', 'user.reg')
# 正则替换with open(regfile, 'r+') as f:    
regstr = f.read()    
for p in ps:        
regstr = p.sub(lambda m: '', regstr)    
f.seek(0, 0)    
f.truncate()    
f.write(regstr)

相关推荐:《Navicat for mysql使用图文教程

Windows

Windows用的注册表,感觉略麻烦。

(1)关闭Navicat

(2)Win + R,输入regedit回车

(3)删除HKEY_CURRENT_USER\Software\PremiumSoft\Data

(4)展开HKEY_CURRENT_USER\Software\Classes\CLSID

(5)展开每一个子文件夹,如果里面只包含一个名为Info的文件夹,就删掉它。

How to extend the 14-day trial period of Navicat?

只要把这些Info都删完,以后Navicat随便试用,试用一万年都可以,如果这个软件公司不倒闭的话。

The above is the detailed content of How to extend the 14-day trial period of Navicat?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn