Mika
Mika

Reputation: 1245

Convert xap to exe

Can anybody suggest a tool to convert Silverlight xap files to Windows executables? I googled and got this this link but it does not work.

Edit: The Silverlight application has been compiled without the out-of-browser switch and I want to know if there is a solution which does not require me to open the project and recompile with out-of browser mode on.

Upvotes: 1

Views: 5951

Answers (2)

Peter Dongan
Peter Dongan

Reputation: 2308

This link might be of interest:

http://www.amazedsaint.com/2010/05/how-to-create-offline-installer-no.html

It describes creating an installer that installs silverlight on machines where it is not present, as well as an Out-of-browser silverlight application and start menu links. You can use this installer on machines with no internet connection and no .net runtime installed. So it offers most of the practical benefits of converting it to an exe. I followed that procedure before and found it good.

Upvotes: 1

Sajeetharan
Sajeetharan

Reputation: 222682

A XAP file is just a Zip file that has a different extension. You can easily use libraries like SharpLib or DotNetZip to extract the contents of it. You can also manualy change the extension of a .xap file to .zip and then extract it in a folder. When extracted, you would get all the assemblies that were bundled as part of the .xap file.

Everything is clearly explained in the following link,

Extracting Assemblies from a XAP File

Upvotes: 1

Related Questions