A.I on the 1s and 0s

Alnur Ismail is a PM for Microsoft's XAML

A Distributable (.exe) Silverlight OOB Application

I’ve seen a few questions regarding how to deploy a Silverlight Out of Browser application in an .exe over the past couple days. This post will show you one way of doing that.

  1. Create your Silverlight OOB app
  2. Open up a new .txt file and add:
    "%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe"
    /overwrite
    /emulate:"MyOOB.xap"
    /origin:http://www.mydomain.com
    (remove the line breaks & watch the spaces!)
  3. Save the file and change the file extension to .bat (i.e. run.bat)
  4. Run c:\Windows\System32\iexpress.exe as admin
  5. Follow the wizard until you’re prompted for the “Packaged Files”
  6. Add your .xap and .bat
  7. Continue until you’re promoted for the “Install Program to Launch”
  8. Type  cmd.exe /C run.bat for the “Install Program”
  9. Complete the wizard.

You application should now be packaged in a distributable .exe.

P.S - If you’ve never heard of sllauncher.exe check out Tim’s blog post here.
P.S.S – Step 8 is only required if you’re deploying to an x64 machine. Otherwise just specify the .bat file.

Posted: May 24 2010, 06:14 PM by alnurismail | with 13 comment(s) |
Filed under:

Comments

A Distributable (.exe) Silverlight OOB Application - A.I on the 1s and 0s said:

Pingback from  A Distributable (.exe) Silverlight OOB Application - A.I on the 1s and 0s

# May 24, 2010 9:36 PM

A Distributable (.exe) Silverlight OOB Application | OOP - Object Oriented Programing said:

Pingback from  A Distributable (.exe) Silverlight OOB Application | OOP - Object Oriented Programing

# May 24, 2010 9:58 PM

Twitter Trackbacks for A Distributable (.exe) Silverlight OOB Application - A.I on the 1s and 0s [asp.net] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 A Distributable (.exe) Silverlight OOB Application - A.I on the 1s and 0s         [asp.net]        on Topsy.com

# May 25, 2010 4:14 AM

Dew Drop – May 25, 2010 | Alvin Ashcraft's Morning Dew said:

Pingback from  Dew Drop – May 25, 2010 | Alvin Ashcraft's Morning Dew

# May 25, 2010 9:39 AM

o UAU nosso de cada dia said:

que ideia interessante: transformar uma aplicacao Silverlight fora  do browser em um executável

# May 26, 2010 12:29 PM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# May 27, 2010 8:36 AM

Anoop Madhusudanan said:

You can also distribute the Silverlight.exe itself with the permission from Microsoft.

I've created simple NSIS installer that installs Silverlight.exe first, and then your xap, via a custom installer

amazedsaint.blogspot.com/.../how-to-create-offline-installer-no.html

# May 27, 2010 9:09 AM

alnurismail said:

@Anoop - If you're going to silently install Silverlight you 1) need Microsoft's permision (which you had), and 2) must roll our EULA into yours and display it to the user.

# May 27, 2010 12:21 PM

Calabonga said:

Fine post. Thanks! I'm translate it to russian musorka.spaces.live.com/.../cns!6B2F8B568B4803E7!4406.entry

# May 30, 2010 6:15 PM

Microsoft Weblogs said:

This is Windows Client Developer roundup #26 on Memorial Day 2010, a few hours late. The Windows Client

# June 1, 2010 3:27 AM

Microsoft Weblogs said:

This is Windows Client Developer roundup #26 on Memorial Day 2010, a few hours late. The Windows Client

# June 1, 2010 3:38 AM

Programming news: JRuby 1.5, NetBeans 6.9 RC, Eclipse Helios RC2 | Programming and Development | TechRepublic.com said:

Pingback from  Programming news: JRuby 1.5, NetBeans 6.9 RC, Eclipse Helios RC2 | Programming and Development | TechRepublic.com

# June 1, 2010 10:02 AM

Windows Client Developer Roundup for May 31, 2010, Holiday Edition | OromoIndex Newswire said:

Pingback from  Windows Client Developer Roundup for May 31, 2010, Holiday Edition | OromoIndex Newswire

# July 12, 2010 8:30 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)