Difference between revisions of "Vlc"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 21: Line 21:
 
</packages>
 
</packages>
 
</pre>
 
</pre>
 +
 +
Upgrade is also possible, but upgrading the installer ask (not silently) to remove the old version, so it is needed to insert two <upgrade /> statement, one for remove the old one (as <remove /> above) and one for install it (as <install /> above).
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 11:00, 27 April 2007

This is the package for VLC (Video LAN Client), a multimedia player.

The second install command removes the desktop shortcut (the path may have to be changed to a localized name).

<?xml version="1.0" encoding="UTF-8"?>

<packages>

   <package
      id="vlc"
      name="Video LAN Client"
      revision="1"
      reboot="false"
      priority="0">

      <check type="uninstall" condition="exists" path="VideoLAN VLC media player 0.8.4a" />
      <install cmd='"%SOFTWARE%\vlc\vlc-0.8.4a-win32.exe" /S' />
      <install cmd='%CMD% /c del "%ALLUSERSPROFILE%\Desktop\VLC media player.lnk"' />
      <remove cmd='"%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" /S' />
   </package>
</packages>

Upgrade is also possible, but upgrading the installer ask (not silently) to remove the old version, so it is needed to insert two <upgrade /> statement, one for remove the old one (as <remove /> above) and one for install it (as <install /> above).