Changes

Jump to: navigation, search

Vlc

1,514 bytes added, 08:25, 14 April 2011
Native method by TGellan
This install method evolved from the Advanced method by SkyBeam and the Alternative method without forking.
Changed to be more flexible for other countries; added variables. e.g. German users set DocaSet="Dokumente und Einstellungen" and ApplData="Anwendungsdaten"
Revision should match VLC revision; downgrade section needed
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packagespackage id='VLC' name='VideoLAN Client' revision='%version%' priority='40' reboot='false' > <check type='uninstall' condition='exists' path='VLC media player %version%' /> <variable name="version" value="1.1.9" /> <variable name="DocaSet" value="c:\Dokuments and Settings"/> <variable name="ApplData" value="Application Data"/> <!-- Uninstall if necessary and 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-%version%-win32.exe" /S /NCRC /D="%ProgramFiles%"'/> <!-- Remove desktop shortcut. WARNING: 'Desktop' directory is for English Windows localization. Replace as needed. --> <install cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Desktop\VLC media player**"'/> <!-- In order to remove the question screen on the first start, vlcrc needs to be configured and copied to %ApplData% folder for every user --> <install cmd='%COMSPEC% /C for /d %a in ("\%DocaSet%\*.*") do mkdir "%a\%ApplData%\vlc"'> <exit code='any' /> </install> <install cmd='%COMSPEC% /C for /d %a in ("%DocaSet%\*.*") do copy /y "%SOFTWARE%\VLC\vlcrc." "%a\%ApplData%\vlc\."' />
<package idupgrade cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC' name/> <upgrade cmd='%COMSPEC% /C if exist "%ProgramFiles%\VideoLAN Client\VLC" rmdir /S /Q "%ProgramFiles%\VideoLAN"' revision/> <upgrade cmd='2' priority%COMSPEC% /C start /wait "VLC" "%SOFTWARE%\VLC\vlc-%version%-win32.exe" /S /NCRC /D="%ProgramFiles%"'40' reboot/> <upgrade cmd='false%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Desktop\VLC media player**"' /> <check typeupgrade cmd='uninstall%COMSPEC% /C for /d %a in ("%DocaSet%\*.*") do mkdir "%a\%ApplData%\vlc"' condition> <exit code='existsany' path/> </upgrade> <upgrade cmd='%COMSPEC% /C for /d %a in ("%DocaSet%\*.*") do copy /y "%SOFTWARE%\VLC media player 1\vlcrc.1" "%a\%ApplData%\vlc\.4"' /> <!-- Uninstall if necessary and install new version --> <install downgrade cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC'/> <install downgrade cmd='%COMSPEC% /C if exist "%ProgramFiles%\VideoLAN\VLC" rmdir /S /Q "%ProgramFiles%\VideoLAN"'/> <install downgrade cmd='%COMSPEC% /C start /wait "VLC" "%SOFTWARE%\VLC\vlc-1.1.4%version%-win32.exe" /S /NCRC /D="%ProgramFiles%"'/> <!-- Remove desktop shortcut. WARNING: 'Desktop' directory is for English Windows localization. Replace as needed. --> <install downgrade cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Desktop\VLC media player**"'/> <!-- 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 downgrade cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings%DocaSet%\*.*") do mkdir "%a\Application Data%ApplData%\vlc"'> <exit code='any' /> </installdowngrade> <install downgrade cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings%DocaSet%\*.*") do copy /y "%SOFTWARE%\VLC\vlcrc." "%a\Application Data%ApplData%\vlc\."' />
<upgrade remove cmd='%COMSPEC% /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC'/> <upgrade remove 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.4-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"'> <exit code='any' /> </upgrade> <upgrade cmd='%COMSPEC% /C for /d %a in ("c:\Documents and Settings\*.*") do copy /y "%SOFTWARE%\VLC\vlcrc." "%a\Application Data\vlc\."' /package>
<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>
Anonymous user

Navigation menu