Changes

Jump to: navigation, search

Vlc

130 bytes added, 21:45, 20 September 2008
no edit summary
@echo off
set BINARY=vlc-0.9.2-win32.exe echo Installing Removing VLC media plyer set INSTALLER_LOC=%~dp0set EXIT_CODE=0set PROG_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROG_FILES=%ProgramFiles(x86)%
echo - Removing previous version "%set INSTALLER_LOC=%unattended-uninstall.cmd"~dp0call "set VLANDIR=%INSTALLER_LOCPROG_FILES%unattended-\VideoLANset UNINSTALLER=%VLANDIR%\VLC\uninstall.cmd"exeset OPTIONS=/Secho - Installing player if not exist "%UNINSTALLER%" goto good_endstart /wait "VLCuninstall" "%INSTALLER_LOCUNINSTALLER%" %BINARYOPTIONS%" REM Unfortunately the uninstaller seems to fork a child process and the parentREM process exits immediately. So give it some time to uninstallfor /S /NCRC /D="L %PROG_FILES%C IN (1,1,30) DO ( if not exist "set EXIT_CODE=%ERRORLEVELUNINSTALLER%" goto good_end ping -n 1 127.0.0.1call ):bad_endexit 1 :good_endif exist "%INSTALLER_LOCVLANDIR%" rmdir "%VLANDIR%cleanup.cmd" exit /B %EXIT_CODE%0
</source>
Anonymous user

Navigation menu