合 Windows下Navicat Premium的无限试用(支持V15、V16、V17版本)
脚本来源于网络
bat脚本
在Windows下的无限试用,则可以使用如下的脚本,保存到一个bat文件中,然后使用管理员账号运行该bat文件即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | @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 Delete 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 %%i in ('"REG QUERY "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s | findstr /L Registration"') do ( reg delete %%i /va /f ) echo Delete Info and ShellFolder under HKEY_CURRENT_USER\Software\Classes\CLSID for /f "tokens=*" %%a in ('reg query "HKEY_CURRENT_USER\Software\Classes\CLSID"') do ( for /f "tokens=*" %%l in ('reg query "%%a" /f "Info" /s /e ^| findstr /i "Info"') do ( echo Delete: %%a reg delete %%a /f ) for /f "tokens=*" %%l in ('reg query "%%a" /f "ShellFolder" /s /e ^| findstr /i "ShellFolder"') do ( echo Delete: %%a reg delete %%a /f ) ) echo Finish pause |