Welcome to MSDN Blogs Sign in | Join | Help

Silverlight Install Modes

Did you know that there are two install modes for Silverlight -- inplace installation (aka 'Direct') and indirect installation.

When you build your site or application using Silverlight, you can use the 'inplaceInstallPrompt' property in your call to Sys.Silverlight.createObject and set it to true or false.

Here's an example:

 

function createSilverlight()
{  
    Sys.Silverlight.createObject(
        "plugin.xaml",                      // Source property value.
        parentElement,                      // DOM reference to hosting DIV tag.
        "myControl",                        // Unique control id value.
        {                                   // Control properties.
            width:'1024',                   // Width of rectangular region of control in pixels.
            height:'530',                   // Height of rectangular region of control in pixels.
            inplaceInstallPrompt:false,     // Determines whether to display in-place install prompt if invalid version detected.
            background:'white',             // Background color of control.
            isWindowless:'false',           // Determines whether to display control in Windowless mode.
            framerate:'24',                 // MaxFrameRate property value.
            version:'0.9'                   // Control version to use.
        },
        {
            onError:null,                   // OnError property value -- event handler function name.
            onLoad:null                     // OnLoad property value -- event handler function name.
        },
        null);                              // Context value -- event handler function name.
}

This will create a banner icon for Silverlight that looks like this:

Clicking on this banner will take your users to http://www.microsoft.com/silverlight where they can download and install the Silverlight runtime.

Alternatively you can have a direct install experience, by setting the inplaceInstallPrompt property to 'true'. This will result in a different banner, that looks like this:

As you can see this contains a Silverlight license agreement, which you agree to by using this banner to download the Silverlight runtime.

In this case, your users will start downloading the Silverlight runtime as soon as they click the banner, instead of being directed to the http://www.microsoft.com/silverlight site first.

Published Tuesday, May 08, 2007 11:27 PM by lmoroney@microsoft.com

Comments

# Jeff Sandquist - Microsoft Evangelist - Beijing Olypmics and Silverlight

# Silverlight Install Modes

Tuesday, May 08, 2007 7:59 PM by Microsoft Silverlight content

Did you know that there are two install modes for Silverlight -- inplace installation (aka 'Direct'

# Silverlight Install Modes

Monday, October 01, 2007 8:51 PM by Techniques

Ever wonder how Silverlight's cool automatic installation works? Did you know that there are two install

# Zero to Hero: How to Check if Silverlight is installed.

Wednesday, October 24, 2007 7:43 PM by Laurence Moroney's Web.NEXT Blog

I've been getting lots of questions on how to check to see if Silverlight is already installed. This

# 从入门到精通:如何检查Silverlight是否安装

Thursday, October 25, 2007 1:21 AM by Bryan Chow

Silverlight.js库提供了如何检查是否已安装Silverlight的方法。Silverligh.available可以检测Silverlight是否被安装,这个方法会返回true或者fa...

# Optimize your Silverlight install Experience

Tuesday, October 30, 2007 12:24 AM by Silverlight: Laurence Moroney's Blog

del.icio.us Tags: Silverlight Technorati Tags: Silverlight I'm happy to say that the UX Guidelines for

Anonymous comments are disabled
 
Page view tracker