[wpkg-users] Firefox zombie state

Bruno CHOQUET bruno.choquet at unicaen.fr
Wed Apr 4 15:51:12 CEST 2012


I use (call) this script and it works (no zombie state). But is there a 
better way than an old-old-old MSDOS SCRIPT ??????

KILLFFX6.BAT

@echo off
set PROGRAM_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROGRAM_FILES=%ProgramFiles(x86)%
rem Path where the uninstaller is located
set APP_DIR=%PROGRAM_FILES%\Mozilla Firefox
rem Path to the uninstaller (see path definition above)
set UNINSTALLER=%APP_DIR%\uninstall\helper.exe
rem Options to be passed to the uninstaller in order to uninstall silently
set OPTIONS=-ms
echo Removing Program
if not exist "%UNINSTALLER%" goto good_end
start /wait "Uninstall" "%UNINSTALLER%" %OPTIONS%
REM Unfortunately the uninstaller seems to fork a child process and the 
parent
REM process exits immediately. So give it some time to uninstall
for /L %%C IN (1,1,30) DO (
   if not exist "%UNINSTALLER%" goto good_end
   ping -n 2 127.0.0.1 > NUL
)
:bad_end
exit /B 1

:good_end
if exist "%APP_DIR%" rmdir /s /q "%APP_DIR%"
exit /B 0



Bruno CHOQUET, responsable du service informatique de l'IUT d'Alençon.
correspondant informatique du site universitaire d'Alençon.
http://www.unicaen.fr/iutalencon
Tel : 02.33.80.85.10






More information about the wpkg-users mailing list