Difference between revisions of "Windows Media Player"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 1: Line 1:
 
Silent installation for Windows Media Player 11 (including an update):
 
Silent installation for Windows Media Player 11 (including an update):
  
<PRE>
+
<source lang="xml">
 
<?xml version="1.0" encoding="utf-8" ?>
 
<?xml version="1.0" encoding="utf-8" ?>
 
<packages>
 
<packages>
Line 24: Line 24:
  
 
</packages>
 
</packages>
</PRE>
+
</source>
  
 
A silent installer for Windows Media Player 10:
 
A silent installer for Windows Media Player 10:
  
<package id="wmp10" name="Windows Media Player 10" >
+
<source lang="xml">
 +
<package id="wmp10" name="Windows Media Player 10" >
 
  <!-- 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" />
 
  <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Windows Media Player\wmplayer.exe" value="10.0.0.0" />
Line 35: Line 36:
 
  <exit code="3010" reboot="true" />
 
  <exit code="3010" reboot="true" />
 
  </install>
 
  </install>
</package>
+
</package>
 +
</source>
  
 
Windows Media Connect<br>
 
Windows Media Connect<br>
Line 44: Line 46:
 
And an update:
 
And an update:
  
<package id="wmp10updates" name="Windows Media Player 10 updates" >
+
<source lang="xml">
 +
<package id="wmp10updates" name="Windows Media Player 10 updates" >
 
  <!-- FIX: Updates for Windows Media Player 10 -->
 
  <!-- FIX: Updates for Windows Media Player 10 -->
 
  <check type="file" condition="versiongreaterorequal" path="%windir%\system32\Wmp.dll" value="10.0.0.3901" />
 
  <check type="file" condition="versiongreaterorequal" path="%windir%\system32\Wmp.dll" value="10.0.0.3901" />
Line 51: Line 54:
 
  <exit code="3010" reboot="true" />
 
  <exit code="3010" reboot="true" />
 
  </install>
 
  </install>
</package>  
+
</package>  
 
+
</source>
  
 
----
 
----
Line 58: Line 61:
 
This is a silent installer for Windows Media Player 9.
 
This is a silent installer for Windows Media Player 9.
  
<package id="wmp92k" name="Windows Media Player 9 for Windows 2000">
+
<source lang="xml">
 +
<package id="wmp92k" name="Windows Media Player 9 for Windows 2000">
 
  <!-- Windows Media Player 9 Series for Windows 98 Second Edition, Me, and 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" />
 
  <check type="file" condition="versiongreaterorequal" path="%ProgramFiles%\Windows Media Player\wmplayer.exe" value="9.0.0.0" />
Line 66: Line 70:
 
  <exit code="3010" reboot="true" />
 
  <exit code="3010" reboot="true" />
 
  </install>
 
  </install>
</package>  
+
</package>  
 
+
</source>
  
 
And an update:
 
And an update:
  
<package id="wmp9update2k" name="Windows Media Player 9 updates" >
+
<source lang="xml">
 +
<package id="wmp9update2k" name="Windows Media Player 9 updates" >
 
  <!-- FIX: Updates for Windows Media Player 9 -->
 
  <!-- FIX: Updates for Windows Media Player 9 -->
 
  <check type="file" condition="versiongreaterorequal" path="%Windir%\system32\wmp.dll" value="9.0.0.3263" />
 
  <check type="file" condition="versiongreaterorequal" path="%Windir%\system32\wmp.dll" value="9.0.0.3263" />
Line 79: Line 84:
 
  <exit code="3010" reboot="true" />
 
  <exit code="3010" reboot="true" />
 
  </install>
 
  </install>
</package>  
+
</package>
 +
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 11:07, 1 May 2008

Silent installation for Windows Media Player 11 (including an update):

<?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>

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>

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>