BitTorrent
- 5 ответов
- 0 вопросов
11
Вклад в тег
@echo off
echo FlashPlayer secure cleanup begin...
echo uninstall all previos version begin...
wmic product where "name like 'Adobe Flash Player%%'" call uninstall /nointeractive
echo uninstall all previos version end.
echo extendent secure cleanup begin...
if %PROCESSOR_ARCHITECTURE% == AMD64 (
set TARGET_PLATFORM=AMD64
rem take ownership
takeown /f "%SYSTEMROOT%\SysWOW64\Macromed\Flash\*.*"
rem extend access
cacls "%SYSTEMROOT%\SysWOW64\Macromed\Flash\*.*" /E /T /G %UserDomain%\%UserName%:F
rem delete
del /q /f "%SYSTEMROOT%\SysWOW64\Macromed\Flash\*.*"
rd /s /q "%SYSTEMROOT%\SysWOW64\Macromed\Flash"
rd /s /q "%SYSTEMROOT%\SysWOW64\Macromed"
del /q /f "%SYSTEMROOT%\SysWOW64\FlashPlayerApp.exe"
del /q /f "%SYSTEMROOT%\SysWOW64\FlashPlayerCPLApp.cpl"
) else (
set TARGET_PLATFORM=Win32
)
rem take ownership
takeown /f "%SYSTEMROOT%\System32\Macromed\Flash\*.*"
rem extend access
cacls "%SYSTEMROOT%\System32\Macromed\Flash\*.*" /E /T /G %UserDomain%\%UserName%:F
rem delete
del /q /f "%SYSTEMROOT%\System32\Macromed\Flash\*.*"
rd /s /q "%SYSTEMROOT%\System32\Macromed\Flash"
rd /s /q "%SYSTEMROOT%\System32\Macromed"
del /q /f "%SYSTEMROOT%\System32\FlashPlayerApp.exe"
del /q /f "%SYSTEMROOT%\System32\FlashPlayerCPLApp.cpl"
echo extendent secure cleanup end.
echo FlashPlayer secure cleanup end.