Skip to content

Commit

Permalink
Update uninstall_zerotier_gaming_fix.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
gomaaz authored Jan 25, 2025
1 parent 08357eb commit d4c3ae7
Showing 1 changed file with 55 additions and 6 deletions.
61 changes: 55 additions & 6 deletions uninstall_zerotier_gaming_fix.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
@echo off
echo.
echo.
echo 8888P w w .d88b w d8b w
echo dP .d88b 8d8b .d8b. w8ww w .d88b 8d8b 8P www .d88 8d8b.d8b. w 8d8b. .d88 8' w Yb dP
echo dP 8.dP' 8P 8' .8 8 8 8.dP' 8P 8b d8 8 8 8P Y8P Y8 8 8P Y8 8 8 w8ww 8 `8.
echo d8888 `Y88P 8 `Y8P' Y8P 8 `Y88P 8 `Y88P' `Y88 8 8 8 8 8 8 `Y88 8 8 dP Yb
echo wwdP
echo.
echo.

echo [INFO] Uninstalling ZeroTier Auto-Fix...

:: Check for administrator privileges
Expand All @@ -9,6 +19,13 @@ if %errorLevel% neq 0 (
exit /b
)

echo.
echo.
echo ==============================================================
echo [INFO] Restore IPv6 prefix policies ...
echo ==============================================================
echo.
echo.
:: Restore IPv6 Prefix Policies if backup exists
set BACKUP_FILE=C:\zerotier_fix\prefix_policy_backup.txt

Expand All @@ -26,14 +43,29 @@ if exist "%BACKUP_FILE%" (
echo [WARNING] No backup file found. Skipping prefix policy restore.
)

echo.
echo.
echo ==============================================================
echo [INFO] Deactivate DirectPlay...
echo ==============================================================
echo.
echo.


:: Remove DirectPlay
echo ==============================================================
echo [INFO] Disabling DirectPlay (Legacy Component)...
dism /online /disable-feature /featurename:DirectPlay /NoRestart
echo [DONE] DirectPlay has been disabled!

:: Stop and delete the scheduled task
echo [INFO] Removing scheduled task...
echo.
echo.
echo ==============================================================
echo [INFO] Stop and delete scheduled tasks...
echo ==============================================================
echo.
echo.

schtasks /delete /tn "ZeroTier Auto Fix" /f >nul 2>&1
schtasks /delete /tn "ZeroTier_PrioritizeIPv6" /f >nul 2>&1

Expand All @@ -44,20 +76,29 @@ timeout /t 2 /nobreak >nul
echo [INFO] Removing read-only attributes...
attrib -r -s -h C:\zerotier_fix\* /S /D >nul 2>&1

:: Force delete all files inside the folder
echo.
echo.
echo ==============================================================
echo [INFO] Deleting all files inside C:\zerotier_fix...
echo ==============================================================
echo.

del /F /Q "C:\zerotier_fix\*.*" >nul 2>&1

:: Wait a moment before deleting the folder
timeout /t 1 /nobreak >nul

:: Try deleting the folder
echo [INFO] Removing C:\zerotier_fix...
rd /s /q C:\zerotier_fix >nul 2>&1

:: Wait before verification
timeout /t 2 /nobreak >nul

echo.
echo ==============================================================
echo [INFO] Verify deletion of files and folders...
echo ==============================================================
echo.
echo.
:: Verify if the folder is deleted
if exist "C:\zerotier_fix" (
echo [ERROR] The folder C:\zerotier_fix could not be deleted.
Expand All @@ -69,8 +110,16 @@ if exist "C:\zerotier_fix" (
echo [SOLUTION] Try restarting your PC and running this uninstaller again.
pause
exit /b
) else (
echo [INFO] Folder deleted successfully: C:\zerotier_fix
)

echo.
echo.
echo [DONE] ZeroTier Auto Fix has been uninstalled successfully. IPv6 prefix policies have been restored.
echo.
echo.
echo Gaming is not wasting time, it's reliving those carefree days when the world was as simple as a game and joy came from just being.
echo.
echo.
pause
exit

0 comments on commit d4c3ae7

Please sign in to comment.