Home > Database > navicat > How to avoid the trial period in Navicat

How to avoid the trial period in Navicat

爱喝马黛茶的安东尼
Release: 2019-08-13 09:36:50
Original
5018 people have browsed it

How to avoid the trial period in Navicat

Linux

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

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

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

#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import os
import 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)
Copy after login

相关推荐:《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 avoid the trial period in Navicat

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

The above is the detailed content of How to avoid the trial period in Navicat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template