Windows Media Player

Silent installation for Windows Media Player, a video player. More informations from here


Media Player 11

<?xml version="1.0" encoding="utf-8" ?>
<packages>

<package id='MediaPlayer_en' name='Microsoft Media Player' revision='1100' priority='55' reboot='false' >
  <!-- Microsoft Media Player -->
  <check type='uninstall' condition='exists' path='Windows Media Player 11' />
  <install cmd='"%SOFTWARE%\software.free\Microsoft Windows MediaPlayer v.11\wmp11-windowsxp-x86-enu.exe" /Q:A /R:N' >
    <exit code='3010' reboot='true' />
  </install>
  <install cmd='"%SOFTWARE%\software.free\Microsoft Windows MediaPlayer v.11\WindowsMedia11-KB929399-v2-x86-INTL.exe" /Q /N /Z' >
    <exit code='3010' reboot='true' />
  </install>
  <upgrade cmd='"%SOFTWARE%\software.free\Microsoft Windows MediaPlayer v.11\wmp11-windowsxp-x86-enu.exe" /Q:A /R:N' >
    <exit code='3010' reboot='true' />
  </upgrade>
  <upgrade cmd='"%SOFTWARE%\software.free\Microsoft Windows MediaPlayer v.11\WindowsMedia11-KB929399-v2-x86-INTL.exe" /Q /N /Z' >
    <exit code='3010' reboot='true' />
  </upgrade>
  <conflicts package-id='MediaPlayer_de' />
</package>

</packages>

Media Player 10

A silent installer for Windows Media Player 10:

<package id="wmp10" name="Windows Media Player 10" >
 <!-- Windows Media Player 10 -->
 <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Windows Media Player\wmplayer.exe" value="10.0.0.0" />
 <install cmd='%SOFTWARE%\mediaplayer10\ENU\mp10setup.exe /Q /R:N /C:"setup_wm.exe /Q /R:N /DisallowSystemRestore /NoPID /SetWMPAsDefault"'>
 <exit code="194" reboot="true" />
 <exit code="3010" reboot="true" />
 </install>
</package>

Windows Media Connect
This is really annoying. As far as I can tell, this installer always pops up a dialog box when System Restore is disabled, no matter how you invoke it. To work around this, we ought to save the System Restore configuration, enable it, run the installer, and restore the configuration. Instead we just enable, install, and disable. FIXME.
Also, this just doesn't seem to work, so I've removed it. RFL


And an update:

<package id="wmp10updates" name="Windows Media Player 10 updates" >
 <!-- FIX: Updates for Windows Media Player 10 -->
 <check type="file" condition="versiongreaterorequal" path="%windir%\system32\Wmp.dll" value="10.0.0.3901" />
 <install cmd='%SOFTWARE%\updates\mediaplayer10\windowsmedia10-kb892313-x86-intl.exe /passive /n /norestart'>
 <exit code="194" reboot="true" />
 <exit code="3010" reboot="true" />
 </install>
</package>


Media Player 9

This is a silent installer for Windows Media Player 9.

<package id="wmp92k" name="Windows Media Player 9 for Windows 2000">
 <!-- Windows Media Player 9 Series for Windows 98 Second Edition, Me, and 2000 -->
 <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Windows Media Player\wmplayer.exe" value="9.0.0.0" />
 <install cmd='%SOFTWARE%\mediaplayer9\enu\MPSetup.EXE /Q /R:N /C:"setup_wm.exe /DisallowSystemRestore /NoPID /SetWMPAsDefault /Q /R:N"' >
 <exit code="194" reboot="true" />
 <exit code="1603" />
 <exit code="3010" reboot="true" />
 </install>
</package>

And an update:

<package id="wmp9update2k" name="Windows Media Player 9 updates" >
 <!-- FIX: Updates for Windows Media Player 9 -->
 <check type="file" condition="versiongreaterorequal" path="%Windir%\system32\wmp.dll" value="9.0.0.3263" />
 <install cmd='%SOFTWARE%\updates\mediaplayer9\windowsmedia9-kb892313-x86-intl.exe /passive /n /norestart'>
 <exit code="194" reboot="true" />
 <exit code="1603" />
 <exit code="3010" reboot="true" />
 </install>
</package>