Can you force Silverlight to only run Out-of-browser?
EDIT: The reason I'm asking is because a lot of Silverlight's functionality only works OOB. If my application depends on this I need to either require the Silverlight app to run in that mode or pick something else.
If a Silverlight applications provides out-of-browser support, you can right-click and select the install option. This adds a shortcut to your desktop or Start menu. You can then use this shortcut to start the application without having to open a browser and navigate to the application's Web site.
Silverlight's license is a perpetual license and is not tied to the continuation of support. While support will be ending in October 2021, this date does not affect the license, which continues in effect for as long as the customer is using the software and complies with the terms of the license.
The Mono Team abandoned development of Moonlight, a free and open-source implementation of both the Silverlight 1 and 2 runtimes. Development was discontinued in 2012 due to the poor acceptance of Silverlight and the restrictions imposed by Microsoft.
How about using this in your Application_Startup
even in App.Xaml.cs:-
private void Application_Startup(object sender, StartupEventArgs e)
{
if (IsRunningOutOfBrowser)
{
this.RootVisual = new MainPage();
}
else
{
this.RootVisual = new PleaseRunOOB():
}
}
Now create a very simple UserControl called PleaseRunOOB
to present to the user the neeed to install and/or run the OOB version of the app.
from http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2010/03/15/silverlight-4-quick-tip-out-of-browser-improvements.aspx
Additional feature exist with new OOB model is ability to install application not from the web page (like it was from version 3), but from command line (having XAP file available). Silverlight 4 OOB launcher has new command line parameters to install, uninstall and execute application in “emulation mode” – without installing it.
For example. to install application on the desktop use the following command:
"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /install:"X:\PACKAGE_LOCATION\SL4Features.Web\ClientBin\APPLICATION.xap"
/origin:http://ORIGINAL_LOCATION/ORIGINAL_HOSTING_PAGE /shortcut:desktop
To uninstall it use the following command:
"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /uninstall:"X:\PACKAGE_LOCATION\APPLICATION.xap"
/origin:http://ORIGINAL_LOCATION/ORIGINAL_HOSTING_PAGE /shortcut:desktop
To run application without installing it (in emulation mode), use the following command:
"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /emulate:"X:\PACKAGE_LOCATION\APPLICATION.xap" /origin:http://ORIGINAL_LOCATION/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With