延长Navicat试用时间

2023-05-05 15:31:07 +0800 CST 1 min read views: 38
@echo off

echo Deleting HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update
echo Deleting HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration [version and language]
for /f %%i in ('reg query "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s ^| findstr /i "Registration"') do (
    reg delete "%%i" /va /f
)

echo Deleting 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 Deleting: %%a
        reg delete "%%a" /f
    )
    for /f "tokens=*" %%l in ('reg query "%%a" /f "ShellFolder" /s /e ^| findstr /i "ShellFolder"') do (
        echo Deleting: %%a
        reg delete "%%a" /f
    )
)

pause
exit