-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavicatUnlimitedTrial.bat
32 lines (26 loc) · 1.05 KB
/
NavicatUnlimitedTrial.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
@echo off
setlocal enabledelayedexpansion
set dn=Info
set dn2=ShellFolder
set rp=HKEY_CURRENT_USER\Software\Classes\CLSID
echo reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration14XCS /f
reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration14XCS /f
echo reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration16XCS /f
reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration16XCS /f
echo reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update /f
reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update /f
echo finding %rp%\{xxx-xxx-xxx-xxx}\%dn%
for /f %%i in ('reg query %rp% /s /e /f "%dn%" ^| findstr \%dn%') do (
set "VAR=%%i"
set "VAR=!VAR:%dn%=!"
echo reg delete !VAR! /f
reg delete !VAR! /f
)
echo finding %rp%\{xxx-xxx-xxx-xxx}\%dn2%
for /f %%i in ('reg query %rp% /s /e /f "%dn2%" ^| findstr \%dn2%') do (
set "VAR=%%i"
set "VAR=!VAR:%dn2%=!"
echo reg delete !VAR! /f
reg delete !VAR! /f
)
endlocal