Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Add Uninstall a Program Cascading Desktop Context Menu

Add or remove a special context menu Uninstall a program to the Desktop context menu. It will save your time, especially if you are installing and removing apps frequently.



Code
@Echo Off & Cls




REM  --> Check for permissions
Reg query "HKU\S-1-5-19\Environment"
REM --> If error flag set, we do not have admin.
if %errorlevel% NEQ 0 (
ECHO                 **************************************
ECHO                  Running Admin shell... Please wait...
ECHO                 **************************************

   goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
   echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
   set params = "%*:"=""
   echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

   "%temp%\getadmin.vbs"
   del "%temp%\getadmin.vbs"
   exit /B


:gotAdmin

Cls & Mode CON  LINES=11 COLS=85 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.

Echo        Add Uninstall a Program Cascading Desktop Context Menu (Y/N)?  
Echo.      
Echo.
Echo.


Set /p input= RESPONSE:

If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_Start)

:_Ex
If /i Not %input%==N  (Goto :EOF) Else (Goto :_RegRestore)



:_Start

Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram" /v "Icon" /t REG_SZ /d "shell32.dll,-271" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram" /v "MUIVerb" /t REG_SZ /d "Uninstall a program" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram" /v "Position" /t REG_SZ /d "Bottom" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram" /v "SubCommands" /t REG_SZ /d "" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\01appwiz" /v "MUIVerb" /t REG_SZ /d "using Control Panel" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\01appwiz" /v "Icon" /t REG_SZ /d "shell32.dll,-271" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\01appwiz\command" /ve /t REG_SZ /d "control.exe /name Microsoft.ProgramsAndFeatures" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\02settings" /v "MUIVerb" /t REG_SZ /d "using Settings" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\02settings" /v "Icon" /t REG_SZ /d "bootux.dll,-1032" /f > Nul
Reg.exe add "HKCR\DesktopBackground\Shell\UninstallaProgram\Shell\02settings\command" /ve /t REG_SZ /d "explorer.exe ms-settings:appsfeatures" /f > Nul


Cls & Mode CON  LINES=11 COLS=75 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo         Adding Uninstall a Program Option to Context Menu  
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit


:_RegRestore

Reg.exe delete "HKCR\DesktopBackground\Shell\UninstallaProgram" /f  > Nul



Cls & Mode CON  LINES=11 COLS=75 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo        Removing Uninstall a Program Option from Context Menu  
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by iRazorOct 15, 2021 12:35 PM 3 157 Oct 15, 2021 12:35 PM
Last Post: steel iron
[Shell] by Emre_Jun 3, 2020 11:44 PM 0 111 Jun 3, 2020 11:44 PM
Last Post: Emre_
[Shell] by Emre_May 30, 2020 05:19 AM 5 237 May 30, 2020 05:19 AM
Last Post: Emre_