|
本帖最后由 cnerp 于 2024-8-21 20:07 编辑
Title 正在卸载7-ZIP……
rem mode con cols=40 lines=5
color 1f
if not exist "%ProgramFiles%\7-Zip\7-Zip.dll" goto run
taskkill /f /im explorer.exe
taskkill /fi "modules eq explorer.exe" /f
rd/s/q "%ProgramFiles%\7-Zip"
if exist %windir%\Rexplorer.exe (
start "" "%windir%\Rexplorer.exe"
) else (
start "" "%windir%\explorer.exe"
)
goto exit
:run
rd/s/q "%ProgramFiles%\7-Zip"
rd/s/q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\7-Zip"
rd/s/q "C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\7-Zip"
:exit
reg delete "HKEY_CURRENT_USER\Software\7-Zip" /f >NUL 2>NUL
reg delete "HKEY_CURRENT_USER\Software\IvoSoft\ClassicStartMenu" /f >NUL 2>NUL
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip" /f >NUL 2>NUL
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}" /f >NUL 2>NUL
echo 卸载成功!
rem pause
|
|