yhan219 / navicat_reset_mac Goto Github PK
View Code? Open in Web Editor NEWnavicat16 mac版无限重置试用期脚本
License: GNU General Public License v3.0
navicat16 mac版无限重置试用期脚本
License: GNU General Public License v3.0
我按照您的步骤搞了一下,不知道为什么我这理还是需要注册
navicat_reset_mac/reset_navicat_52pojie.sh
Lines 32 to 39 in 4bf51d5
regex="([0-9A-Z]{32}) = "
while [[ $(defaults read $file) =~ $regex ]] ; do
hash=${BASH_REMATCH[1]}
defaults delete $file $hash
done
最新版的16.3.4失效了
@echo off
echo Delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration[version and language]
for /f %%i in ('"REG QUERY "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s | findstr /L Registration"') do (
reg delete %%i /va /f
)
echo.
echo Delete Info folder under HKEY_CURRENT_USER\Software\Classes\CLSID
for /f %%i in ('"REG QUERY "HKEY_CURRENT_USER\Software\Classes\CLSID" /s | findstr /E Info"') do (
reg delete %%i /va /f
)
echo.
echo Finish
pause
我完全卸载了再重装也不行
重启mac之后再执行脚本,过期时间变成14天。
这是什么原因呢?有什么方式可以不重启吗?
~/Library/Preferences/com.navicat.NavicatPremium.plis
这个路径在mac m1 /macos12下,没有这个路径
Macbook M1 每次执行脚本后需要手动重启电脑才生效,目前没办法通过定时任务执行脚本重置了
shell脚本的第三行和第四行的两个ID找不到 参考 91F6C435D172C8163E0689D3DAD3F3E9
配置是 M1 版本是 12.2.1
下载16 navicat premium 直接运行这个提示 :
lishipeng@lishipengdeMacBook-Pro navicat_reset_mac % ./reset_navicat.sh
rm: "." and ".." may not be removed
请问是不是一定要等到过期时候再执行这个命令呢?不能提前执行呢?
执行脚本报错如下:
Delete: Entry, ":91F6C435D172C8163E0689D3DAD3F3E9", Does Not Exist
Delete: Entry, ":B966DBD409B87EF577C9BBF3363E9614", Does Not Exist
total 8
drwxr-xr-x 4 backblog staff 128B 7 22 09:22 .
drwxr-xr-x 4 backblog staff 128B 7 22 08:27 ..
drwxr-xr-x 2 backblog staff 64B 7 22 08:27 Profiles
-rw-r--r-- 1 backblog staff 478B 7 22 09:18 info.plist
rm: "." and ".." may not be removed
版本是根据你提供的链接官网下载的最新版,希望大佬留个联系方式也可以.
我对连接进行了group,比如 online、debug.但是运行完脚本以后分组就没有了.要重新进行分组
我的试用期还有3天,手动删除两个key值和隐藏文件后重启,还是剩余3天,是否要等到试用期结束才能重置?
macos12.4+navicat16.0.14中文版,执行命令没出错,注册表和文件也删除成功了
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
echo "Detected Navicat Premium version $version"
case $version in
"16")
file=~/Library/Preferences/com.navicat.NavicatPremium.plist
;;
"15")
file=~/Library/Preferences/com.prect.NavicatPremium15.plist
;;
*)
echo "Version '$version' not handled"
exit 1
;;
esac
echo -n "Reseting trial time..."
regex="([0-9A-Z]{32}) = "
[[ $(defaults read $file) =~ $regex ]]
hash=${BASH_REMATCH[1]}
if [ ! -z $hash ]; then
defaults delete $file $hash
fi
regex="\.([0-9A-Z]{32})"
[[ $(ls -a ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/ | grep '^\.') =~ $regex ]]
hash2=${BASH_REMATCH[1]}
if [ ! -z $hash2 ]; then
rm ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/.$hash2
fi
echo " Done"
```#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
echo "Detected Navicat Premium version $version"
case $version in
"16")
file=~/Library/Preferences/com.navicat.NavicatPremium.plist
;;
"15")
file=~/Library/Preferences/com.prect.NavicatPremium15.plist
;;
*)
echo "Version '$version' not handled"
exit 1
;;
esac
echo -n "Reseting trial time..."
regex="([0-9A-Z]{32}) = "
[[ $(defaults read $file) =~ $regex ]]
hash=${BASH_REMATCH[1]}
if [ ! -z $hash ]; then
defaults delete $file $hash
fi
regex="\.([0-9A-Z]{32})"
[[ $(ls -a ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/ | grep '^\.') =~ $regex ]]
hash2=${BASH_REMATCH[1]}
if [ ! -z $hash2 ]; then
rm ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/.$hash2
fi
echo " Done"
MBP14 M1pro macos12 navicat16.0.12 运行后没有效果
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.