Difference between revisions of "Media Player Classic"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (%ProgramFiles%)
m
Line 3: Line 3:
 
<pre>
 
<pre>
 
<package id="mediaplayerclassic" name="Media Player Classic" revision="1" reboot="false" priority="0">
 
<package id="mediaplayerclassic" name="Media Player Classic" revision="1" reboot="false" priority="0">
     <check type="file" condition="exists" path="c:\Program Files\media player classic\mplayerc.exe" />
+
     <check type="file" condition="exists" path="%PROGRAMFILES%\media player classic\mplayerc.exe" />
     <install cmd='\\Serwer\instalki\mpc\installmpc.bat'>
+
     <install cmd='%SOFTWARE%\mpc\installmpc.bat' />
        <exit code="0" />
+
     <remove cmd='%SOFTWARE%\mpc\uninstallmpc.bat' />
    </install>
+
     <upgrade cmd='%SOFTWARE%\mpc\upgradempc.bat' />
     <remove cmd='\\Serwer\instalki\mpc\uninstallmpc.bat' />
+
     <upgrade cmd='\\Serwer\instalki\mpc\upgradempc.bat' />
+
 
</package>
 
</package>
 
</pre>
 
</pre>
Line 15: Line 13:
 
install.cmd:
 
install.cmd:
 
  mkdir "%ProgramFiles%\media player classic"
 
  mkdir "%ProgramFiles%\media player classic"
  copy /Y "\\serwer\instalki\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"
+
  copy /Y "%SOFTWARE%\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"
  copy /Y "\\serwer\instalki\mpc\odtwarzanie wideo, DVD, V-CD.lnk" "%ALLUSERSPROFILE%\PULPIT"
+
  copy /Y "%SOFTWARE%\mpc\odtwarzanie wideo, DVD, V-CD.lnk" "%ALLUSERSPROFILE%\PULPIT"
  
  
Line 26: Line 24:
 
upgrade.cmd:
 
upgrade.cmd:
 
  del /Y "%ProgramFiles%\media player classic\mplayerc.exe"
 
  del /Y "%ProgramFiles%\media player classic\mplayerc.exe"
  copy /Y "\\serwer\instalki\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"
+
  copy /Y "%SOFTWARE%\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"
  
  
[[category:Silent Installers|Media Player Classic]]
+
[[category:Silent Installers]]

Revision as of 20:11, 2 October 2006

MediaPlayerClassic is an OpenSource (GPL) Videoplayer in the style of the old WindowsMediaPlayer 6.4 but with much more features.

<package id="mediaplayerclassic" name="Media Player Classic" revision="1" reboot="false" priority="0">
    <check type="file" condition="exists" path="%PROGRAMFILES%\media player classic\mplayerc.exe" />
    <install cmd='%SOFTWARE%\mpc\installmpc.bat' />
    <remove cmd='%SOFTWARE%\mpc\uninstallmpc.bat' />
    <upgrade cmd='%SOFTWARE%\mpc\upgradempc.bat' />
</package>


install.cmd:

mkdir "%ProgramFiles%\media player classic"
copy /Y "%SOFTWARE%\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"
copy /Y "%SOFTWARE%\mpc\odtwarzanie wideo, DVD, V-CD.lnk" "%ALLUSERSPROFILE%\PULPIT"


uninstall.cmd:

del /Y "%ProgramFiles%\media player classic\mplayerc.exe"
del /Y "%ProgramFiles%\media player classic"


upgrade.cmd:

del /Y "%ProgramFiles%\media player classic\mplayerc.exe"
copy /Y "%SOFTWARE%\mpc\mplayerc.exe" "%ProgramFiles%\media player classic"