Giter VIP home page Giter VIP logo

navicat_reset_mac's Issues

下载16 navicat premium 直接运行这个提示

下载16 navicat premium 直接运行这个提示 :
lishipeng@lishipengdeMacBook-Pro navicat_reset_mac % ./reset_navicat.sh
rm: "." and ".." may not be removed
请问是不是一定要等到过期时候再执行这个命令呢?不能提前执行呢?

makes it more humanable

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}) = "
while [[ $(defaults read $file) =~ $regex ]] ; do
    hash=${BASH_REMATCH[1]}
    defaults delete $file $hash
done 

No com.navicat.NavicatPremium.plis

问题:
我的电脑没有下面这两个文件
~/Library/Preferences/com.navicat.NavicatPremium.plis
~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/

电脑版本:
image

Navicat版本:Navicat Premium 16

404

shell脚本的第三行和第四行的两个ID找不到 参考 91F6C435D172C8163E0689D3DAD3F3E9
配置是 M1 版本是 12.2.1

大佬,好像不行啊,能提供一下你的安装包吗?

执行脚本报错如下:
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

版本是根据你提供的链接官网下载的最新版,希望大佬留个联系方式也可以.

window 版本 navicat premium 16.2.3 重置脚本失效

@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 m1下没有相关路径

~/Library/Preferences/com.navicat.NavicatPremium.plis

这个路径在mac m1 /macos12下,没有这个路径

我这怎么不好用

我按照您的步骤搞了一下,不知道为什么我这理还是需要注册

worked for version 16.2.5

#!/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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.