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"
    (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 11 comment(s) |
Filed under:


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