Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Created by FreeBooter
- @Echo Off
- Title Dost-Tech.com
- Cd %systemroot%\system32
- Call :IsAdmin
- :_Start
- Cls & Mode CON LINES=11 COLS=70 & Color 0D &Title Created By FreeBooter
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Type (R) to Remove Context Menu install *.cab updates º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Echo.
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Type (A) to Add Context Menu install *.cab updates º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Set /p input= RESPONSE:
- If /i Not %input%==R (Goto :_Ex) Else (Goto :_Remove)
- :_Ex
- If /i Not %input%==A (Goto :_Start) Else (Goto :_Add)
- ::Add Context Menu install *.cab updates
- :_Add
- Reg Add "HKCR\CABFolder\Shell\RunAs" /ve /t REG_SZ /d "Install this update" /f
- Reg Add "HKCR\CABFolder\Shell\RunAs" /v "HasLUAShield" /t REG_SZ /d "" /f
- Reg Add "HKCR\CABFolder\Shell\RunAs\Command" /ve /t REG_SZ /d "cmd /k dism /online /add-package /packagepath:\"%%1\"" /f
- Cls & Mode CON LINES=5 COLS=48 & Color 0E
- Echo.
- Echo.
- Echo FINNISH
- Ping -n 5 localhost > Nul
- Exit
- ::Remove Context Menu install *.cab updates
- :_Remove
- Reg Delete "HKCR\CABFolder\Shell\RunAs" /f
- Cls & Mode CON LINES=5 COLS=48 & Color 0E
- Echo.
- Echo.
- Echo FINNISH
- Ping -n 5 localhost > Nul
- Exit
- :IsAdmin
- Reg query "HKU\S-1-5-19\Environment"
- If Not %ERRORLEVEL% EQU 0 (
- Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title - WARNING -
- Echo.
- Echo.
- Echo YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
- Pause > Nul & Exit
- )
- Cls
- goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement