Remove Steam Uninstall Links

Submitted on Thu, 13/07/2017 - 19:59

Remove the annoying entries in 'Programs and Features' that run Steam and uninstall your steam apps.

@echo off
title Remove Steam Uninstall Links From Windows 'Programs and Features'
REM detect Admin
net session >nul 2>&1
if %errorlevel% == 0 (
    for /F "delims=" %%a in ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall ^| findstr /C:"Steam App"') do reg delete "%%a" /f
    for /F "delims=" %%a in ('reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall ^| findstr /C:"Steam App"') do reg delete "%%a" /f
    echo Finished.
) else (
    echo You do not have Admin Privileges.
    echo Please Right click and choose 'Run as administrator'