Giter VIP home page Giter VIP logo

navicat-refresh's Introduction

navicat-refresh

Version

  • Navicat Premium 17, 16, and 15 (Windows)

Script Functionality

Delete Navicat Registry Entries

The script will delete the following registry entries:

  1. Navicat Registration Entries

    • The script will locate and delete all registration entries under:
      HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration[version and language]
      
      • Examples:
        • Registration15XCT
        • Registration16XEN
        • Registration17XEN
  2. Delete "Info" and "ShellFolder" Entries under CLSID

    • The script will identify and delete all "Info" and "ShellFolder" folders under the CLSID registry path:
      HKEY_CURRENT_USER\Software\Classes\CLSID\{ID}\Info
      
    • Note: The parent folder name of "Info" and "ShellFolder" may vary from person to person, so the script is designed to carefully locate and remove these entries without affecting other important files.

How to Use

  1. Download the script.
  2. Run the script as an administrator to ensure it has the necessary permissions to delete the registry entries.

Automating the Script with Windows Task Scheduler

You can automate the execution of this script by using Windows Task Scheduler, which allows you to schedule the script to run at regular intervals without any manual intervention.

Setting Up a Weekly Task in Windows Task Scheduler

  1. Open Task Scheduler:

    • Press Win + R, type taskschd.msc, and press Enter to open Task Scheduler.
  2. Create a Basic Task:

    • Click on Create Basic Task in the Actions pane on the right.
    • Name the task (e.g., "Navicat Refresh").
  3. Trigger Setup:

    • Choose Weekly.
    • Choose a start date and time, set it to recur every 1 week.
  4. Action Setup:

    • Select Start a program and click Next.
    • In the Program/script field, click Browse and navigate to the location of the navicat-refresh.bat file.
  5. Confirm and Finish:

    • Review the settings to ensure everything is correct.
    • Click Finish to create the task.

Deleting the Task

If you no longer need the task, you can easily delete it:

  1. Open Task Scheduler:

    • Press Win + R, type taskschd.msc, and press Enter to open Task Scheduler.
  2. Find and Delete the Task:

    • In the left pane, click on Task Scheduler Library.
    • Find the task you created (e.g., "Navicat Refresh").
    • Right-click the task and select Delete.

Special Thanks

Sincere appreciation goes to everyone in the community who contributed to improving this script, particularly those involved in Issue 4. Your efforts have significantly enhanced the script's efficiency and expanded its compatibility to include Navicat Premium 17. Thank you for your ongoing support!

navicat-refresh's People

Contributors

wctsai20002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

navicat-refresh's Issues

Navicat Premium 16.2.2 Not Supported

您好,升级到Navicat Premium 16.2.2之后,当前清理注册表的方式就不能实现“刷新试用时间”了。
请问,您是否考虑在最近一段时间,更新脚本程序?

A nicer bat file

Thanks for your research on this.
It might be nice to improve the bat file to allow this to run automatically.

Here is an example:

@echo off
setlocal

if not exist "%userprofile%\Documents\Navicat\navicat-refresh.bat" (
	echo "Setting up Navicat Refresh BAT"
	echo "-> Move to right place if not there already"
	echo "-> Setup a schedular"
	echo "-> Initially run it"
	echo ""
	pause

	echo ""
	echo "Copying file to Documents \ Navicat \"
	xcopy /I /Y "%~f0" "%userprofile%\Documents\Navicat\" >nul 2>&1

	:: /create new sch, weekly, per 1 week, named NavicatRefresh, Run Bat file, 
	schtasks /create /sc WEEKLY /mo 1 /tn NavicatRefresh /tr %userprofile%\Documents\Navicat\navicat-refresh.bat

	echo ""
	echo "Setup scxhedule to run weekly"
	echo "Opening new window for this to run for the first time....."
	start "new window" "cmd /c "%userprofile%\Documents\Navicat\%~nx0""
	echo "This script will now exit"
	pause
	exit /b 1
)


:: Check location
if not exist "%userprofile%\Documents\Navicat\" (
    >&2 echo User \ Documents \ Navicat folder not exist
    exit /b 1
)

if "%~dp0" == "%userprofile%\Documents\Navicat\" goto :main

:main
echo %~f0
echo "Running the refresh"
@echo off



:::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::
:: Navicat 17 / 16 / 15
:::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::

echo Deleting HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update
reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update /f

echo Delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration[version and language]
for /f "tokens=*" %%i in ('REG QUERY "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s ^| findstr /L "Registration"') do (
    reg delete "%%i" /va /f
)

echo Deleting Info and ShellFolder under HKEY_CURRENT_USER\Software\Classes\CLSID
for /f "tokens=*" %%k in ('reg query "HKEY_CURRENT_USER\Software\Classes\CLSID"') do (
    reg query "%%k" /f "Info" /s /e | findstr /i "Info" >nul && reg delete "%%k" /f
    reg query "%%k" /f "ShellFolder" /s /e | findstr /i "ShellFolder" >nul && reg delete "%%k" /f
)


echo Finished

Navicat 16.3.2 not working

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

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.