Skip to content

Instantly share code, notes, and snippets.

@mohamad-supangat
Created October 21, 2024 04:27
Show Gist options
  • Save mohamad-supangat/a5bd2f098d2af9580741bdf8d2bac296 to your computer and use it in GitHub Desktop.
Save mohamad-supangat/a5bd2f098d2af9580741bdf8d2bac296 to your computer and use it in GitHub Desktop.
Reset Navicat
@echo off
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 Finish
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment