Difference between revisions of "Microsoft Silverlight"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(updated version and added ignorewarnings for the various non-sense error codes it spits out even during successes.)
(Update to 4.0.50917.0)
Line 1: Line 1:
 
This is a silent installer for Microsoft Silverlight, a plugin for rich interactive web content, in some extent similar to Macromedia Flash Player.
 
This is a silent installer for Microsoft Silverlight, a plugin for rich interactive web content, in some extent similar to Macromedia Flash Player.
 +
 +
You can check for the latest version at http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
  
 
== Silverlight 4 ==
 
== Silverlight 4 ==
Line 5: Line 7:
 
<source lang="xml">
 
<source lang="xml">
 
<package
 
<package
id="silverlight"
+
  id="silverlight"
name="Microsoft Silver Light 4.0.50524.0"
+
  name="Microsoft Silver Light 4"
revision="1"
+
  revision="%version%"
reboot="false"
+
  reboot="false"
priority="50">
+
  priority="50">
+
 
<check
+
  <variable name="version" value="4.0.50917.0" />
type="uninstall"
+
condition="versionequalto"
+
  <check
path="Microsoft Silverlight"
+
    type="uninstall"
value="4.0.50524.0" />
+
    condition="versionequalto"
 +
    path="Microsoft Silverlight"
 +
    value="%version%" />
 
 
<install cmd='"%SOFTWARE%\silverlight\Silverlight-4.0.50524.0.exe" /q /noupdate' />
+
<install cmd='"%SOFTWARE%\silverlight\Silverlight-%version%.exe" /q /noupdate' />
<upgrade cmd='"%SOFTWARE%\silverlight\Silverlight-4.0.50524.0.exe" /q /noupdate' />
+
<upgrade cmd='"%SOFTWARE%\silverlight\Silverlight-%version%.exe" /q /noupdate' />
 
<remove cmd='msiexec /qn /x{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}' />
 
<remove cmd='msiexec /qn /x{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}' />
 
</package>
 
</package>

Revision as of 01:14, 17 November 2010

This is a silent installer for Microsoft Silverlight, a plugin for rich interactive web content, in some extent similar to Macromedia Flash Player.

You can check for the latest version at http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx

Silverlight 4

<package
  id="silverlight"
  name="Microsoft Silver Light 4"
  revision="%version%"
  reboot="false"
  priority="50">
  
  <variable name="version" value="4.0.50917.0" />
	
  <check
    type="uninstall"
    condition="versionequalto"
    path="Microsoft Silverlight"
    value="%version%" />
		
	<install cmd='"%SOFTWARE%\silverlight\Silverlight-%version%.exe" /q /noupdate' />
	<upgrade cmd='"%SOFTWARE%\silverlight\Silverlight-%version%.exe" /q /noupdate' />
	<remove cmd='msiexec /qn /x{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}' />
</package>

Silverlight 3

<package id="silverlight3" name="SilverLight 3 with auto-update check disabled" revision="1" reboot="false" priority="0">
        <check  type='file' condition='versionequalto' path='%PROGRAMFILES%\Microsoft Silverlight\sllauncher.exe' value='3.0.50106.0' />
        <install cmd='"%SOFTWARE%\silverlight3\SilverLight.exe" /q /noupdate /ignorewarnings' />
        <upgrade cmd='"%SOFTWARE%\silverlight3\SilverLight.exe" /q /noupdate /ignorewarnings' />
        <remove  cmd='MsiExec.exe /qn /X{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}' />
</package>


Please notice how check has to be performed on an executable since the uninstall string seems to always be "Microsoft Silverlight" despite the version. Also notice that uninstallation GUID seems to always be {89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} despite the version.

Some documentation on Silveright installation switches: http://blogs.technet.com/extreme/archive/2009/04/02/silverlight-installation-switches.aspx.

The "/noupdate" installation switch seems to set the "HKEY_LOCAL_MACHINE\Software\Microsoft\Silverlight" "UpdateMode" to DWORD value "2".

Silverlight 2

<package
    id="silverlight"
    name="SilverLight"
    revision="1"
    reboot="false"
    priority="0">
        <check type="uninstall" condition="exists" path="Microsoft Silverlight" />
        <install cmd='"%SOFTWARE%\silverlight\SilverLight 2.0.exe" /q' />
        <upgrade cmd='"%SOFTWARE%\silverlight\SilverLight 2.0.exe" /q' />
        <remove cmd='MsiExec.exe /X{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}' />
</package>

Silverlight install sometimes (always for some) exits with strange error codes (and says that it has done a rollback), yet the plugin is working fine after such fiasco.