VLC for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.7 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id='vlc'
name='Lecteur multimedia VideoLAN Client'
revision='25'
13 years ago
priority='10'
reboot='false' >
<variable name="PKG_VERSION" value="3.0.0" />
<variable architecture="x86" name="SETUP_PATH" value="%SOFTWARE%\vlc\vlc-%PKG_VERSION%-win32.exe" />
<variable architecture="x64" name="SETUP_PATH" value="%SOFTWARE%\vlc\vlc-%PKG_VERSION%-win64.exe" />
13 years ago
11 years ago
<check type='uninstall' condition='versionequalto' path='VLC media player' value='%PKG_VERSION%'/>
13 years ago
<install include='remove' />
<install cmd='%COMSPEC% /C start /wait "VLC" "%SETUP_PATH%" /S /NCRC /D="%PROGRAMFILES%"'/>
13 years ago
<!-- XP -->
<install cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Bureau\VLC media player**"'>
<exit code="any" />
</install>
<!-- Vista / 7 -->
<install cmd='%COMSPEC% /C del /F /Q "%PUBLIC%\Desktop\VLC media player**"'>
<exit code="any" />
</install>
<!-- Remove x86 on x64 systems -->
<upgrade architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES(x86)%\VideoLAN\VLC\uninstall.exe" /S _?=%PROGRAMFILES(x86)%\VideoLAN\VLC' />
13 years ago
<upgrade include='install'/>
<downgrade include='upgrade' />
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\VideoLAN\VLC\uninstall.exe" "%INSTALL_PATH%\VideoLAN\VLC\uninstall.exe" /S _?=%INSTALL_PATH%\VideoLAN\VLC'/>
13 years ago
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\VideoLAN\VLC" rmdir /S /Q "%INSTALL_PATH%\VideoLAN"'/>
</package>
</packages>