-
-
Save tuxity/32b353f00b38fe41c64434b98fdee077 to your computer and use it in GitHub Desktop.
TY!
works great!
how do reset trial on ubuntu
how on ubuntu
my way to reset, tested on version 16
#!/bin/bash
dconf reset -f /com/premiumsoft/
rm -rf ~/.config/navicat/Premium/preferences.json*
~/apps/navicat16-premium-en.AppImage # path of the navicat
save it to ~/apps/navicat_reset_trial.sh
then locate navicate.desktop or create one ~/.local/share/applications/navicat.desktop
[Desktop Entry]
Name=Navicat
Comment=Navicat MySQL Database Manager
Exec=~/apps/navicat_reset_trial.sh
Icon=~/apps/navicat.png # optiional
Terminal=false
Type=Application
Categories=Development
X-Desktop-File-Install-Version=0.24
Macbook.
Version 16
Not working
#!/usr/bin/env bash
set -e
file=$(defaults read /Applications/Navicat\ for\ MySQL.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
echo "Detected Navicat Premium version $version"
case $version in
"16")
file=/Users/myname/Library/Preferences/com.navicat.NavicatForMySQL.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 /Users/myname/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/ | grep '^\.') =~ $regex ]]
hash2=${BASH_REMATCH[1]}
if [ ! -z $hash2 ]; then
rm /Users/myname/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ Premium/.$hash2
fi
echo " Done"
Output
Detected Navicat Premium version 16
Reseting trial time... Done
But not reset date, and show to register.
Thank you so much!
P.s I used this script with little modification for restore my trial period for Navicat for MySQL
mac mini M1
Navicat Version 16
works correctly
Thanks!
thanks you bro,
it works on my mac m2 navicat 16
How can I reset it on windows?
How can I reset it on windows?
You should check out this repo:
https://github.com/wctsai20002/navicat-refresh
working for Navicat for Mysql
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ for\ MySQL.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.NavicatForMySQL.plist/Library/Preferences/com.prect.NavicatForMySQL.plist
;;
"15")
file=
;;
*)
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\ for\ MySQL/ | grep '^.') = $regex ]]
hash2=${BASH_REMATCH[1]}
if [ ! -z $hash2 ]; then
rm ~/Library/Application\ Support/PremiumSoft\ CyberTech/Navicat\ CC/Navicat\ for\ MySQL/.$hash2
fi
echo " Done"
Thank you very much, it's working on my Mac
Thank you very much !!
Thank you man!
any update for navicat 16 on macos?
nice.
How to run on mac? just run with terminal? @rvalenzuelaferrada
How to run on mac? just run with terminal? @rvalenzuelaferrada
@almasbani with the terminal you run bash navicat_reset_trial.sh
then you can create a cronjob to run the file automatically.
thx bro!
nice thx
Works in Mac M1, thanks bro!
It works for me to Navicat 16.2.9
It perfectly works on ubuntu 22.04
It works! Thanks!
16.3.1 not work
I used your code on previous Navicat Premium versione and it works.
With the last Navicat Premium (16.3.2) and Navicat for Postgres (16.3.2) is not working
WIN 11
@Ttou @Danydeidei following the script manually works, I did it with 16.3.1.
I will fix regex script later
thank you so much ;-)
@Ttou @Danydeidei following the script manually works, I did it with 16.3.1. I will fix regex script later
16.3.2 not working on windows 11
can you help please
I used your code on previous Navicat Premium versione and it works. With the last Navicat Premium (16.3.2) and Navicat for Postgres (16.3.2) is not working WIN 11
How can you run above sh script in windows ?
Tested with 16.3.2 on macOS Sonoma 14.1.1 with bash 5.2.15 installed with homebrew and it's working. I have added a bit more logs to help to see if the regex is working to catch the hashes.
This is for Navicat Premium ONLY, other versions are not supported.
Thanks bro! It works on navicat 16 and macOS 14.1.1
my trial period is already over how to make this work anyone please help
@Kumarjit88 You could run this bash shell again, and use crontab command to set a schedule task.
I don't think it's works anymore with version 16.3.3
@Ttou @Danydeidei following the script manually works, I did it with 16.3.1. I will fix regex script later
16.3.2 not working on windows 11 can you help please
@manarsalhab For win try this
Just tested with 16.3.4 on macOS and it is working. This script is NOT for windows.
It works with my mac mini, MacOS 16.6.3.
m2 Mac doesn't work. version 16.3.7
Not works anymore 16.3.5 intel
still working on 16.3.7 for m1.
still working on 16.3.7 for m1.
Thanks. I'm upgrading version now.
need sudo
still working on 16.3.7 for m1.
still working? not working for me.16.3.7, too.
Thanks a lot, it's working on my Mac