1
edit
Changes
Vlc
,no edit summary
</source>
Note that there must not be spaces around the path that follows _?=
== Native method by TGellan ==
This install method evolved from the Advanced method by SkyBeam and the Alternative method without forking.
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id='VLC' name='VideoLAN Client' revision='2' priority='40' reboot='false' >
<check type='uninstall' condition='exists' path='VLC media player 1.0.3' />
<!-- 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 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.0.3-win32.exe" /S /NCRC /D="%ProgramFiles%"'/>
<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.0.3-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"'/>
</package>
</packages>
</source>
The package silently uninstalls a previous version (or the actual in case the wpkg.xml is not present) and then installs the 1.0.3 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.
[[category:Silent Installers]]
[[category:Security Advisories]]