Changes

Vlc

60 bytes added, 14:26, 29 July 2010
Fix Version Numbering
<package id='VLC' name='VideoLAN Client' revision='2' priority='40' reboot='false' >
<check type='uninstall' condition='exists' path='VLC media player 1.1.01' /> <!-- In order to remove the question screen on the first start, vlcrc needs to be configured Uninstall if necessary and copied to %appdata% folder for every user install new version -->
<install cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC'/>
<install cmd='%COMSPEC% /C if exist "%ProgramFiles%\VideoLAN\VLC" rmdir /S /Q "%ProgramFiles%\VideoLAN"'/>
<install cmd='%COMSPEC% /C start /wait "VLC" "%SOFTWARE%\VLC\vlc-1.1.1-win32.exe" /S /NCRC /D="%ProgramFiles%"'/>
<!-- In order to remove the question screen on the first start, vlcrc needs to be configured and copied to %appdata% folder for every user -->
<install cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Desktop\VLC media player**"'/>
<install cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings\*.*") do mkdir "%a\Application Data\vlc"' />
<install cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings\*.*") do copy /y "%SOFTWARE%\VLC\vlcrc." "%a\Application Data\vlc\."' />
 
<upgrade cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC'/>
<upgrade cmd='%COMSPEC% /C if exist "%ProgramFiles%\VideoLAN\VLC" rmdir /S /Q "%ProgramFiles%\VideoLAN"'/>
<upgrade cmd='%COMSPEC% /C start /wait "VLC" "%SOFTWARE%\VLC\vlc-1.1.01-win32.exe" /S /NCRC /D="%ProgramFiles%"'/>
<upgrade cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Desktop\VLC media player**"'/>
<upgrade cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings\*.*") do mkdir "%a\Application Data\vlc"' />
<upgrade cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings\*.*") do copy /y "%SOFTWARE%\VLC\vlcrc." "%a\Application Data\vlc\."' />
 
<remove cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC'/>
<remove cmd='%COMSPEC% /C if exist "%ProgramFiles%\VideoLAN\VLC" rmdir /S /Q "%ProgramFiles%\VideoLAN"'/>
</source>
The package silently uninstalls a previous version (or the actual in case the wpkg.xml is not present) and then installs the 1.1.0 1 version. Afterwards a preconfigured vlcrc is copied to any user account. <BR>
Minor problem: New users on the PC will not get the vlcrc automatically, thus will still be presented with the question screen on first start.
Anonymous user