强制安装 Silverlight 4 客户端,而不是 Silverlight 5
我希望我的应用程序下载并安装 Silverlight 4,而不是 Silverlight 5。任何
在客户端计算机上安装 SL v.4+ 的人 = 我的应用程序运行完美。 安装在客户端计算机上的 SL v.5+ = 我的应用程序运行得像便便一样并且崩溃了。
这是一个商业应用程序,我可以在其中告诉客户要安装什么版本。问题是,使用 VS2010 生成的以下标准标记,它会强制每次安装 SL5。
有没有办法让 SL 4 安装,因为安装客户端的 SL 版本(v4 和 v5)明显存在兼容性错误。
重写 SL 代码不是一个选择。
任何帮助都会很棒..这是 VS 自动生成的标记。
谢谢。
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/Web.Portal.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.60310.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.60310.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</form>
</body>
I would like my application to download and install Silverlight 4, NOT Silverlight 5. Anyone
SL v.4+ installed on client computer = my app runs perfect.
SL v.5+ installed on client computer = my app runs like poop and crashes.
This is a business application where I can tell the client what version to install. The problem is, with the following standard markup generated by VS2010, it forces SL5 to install each time.
Is there a way to make SL 4 to install, since there are clearly bugs in compatibility regarding the version of SL installed the client (v4 and v5).
Re-writing SL code is not an option.
Any help would be great.. here's the markup auto-generated by VS.
Thanks.
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/Web.Portal.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.60310.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.60310.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</form>
</body>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果用户没有 Silverlight 插件,或者他们的版本太旧了。您可以将此内容更改为您想要的任何内容。特别是,您可以更改它,以便将您带到可以下载 Silverlight 4 插件的页面,而不是官方 Microsoft Silverlight 页面。
我在 Microsoft 网站上找不到下载 Silverlight 4 安装程序的地方。但是,如果您碰巧在某处有此安装程序的副本,您可以尝试将其上传到您的网站并链接到它。
The contents of the
<object>
element (minus the<param>
s) are displayed in the user's browser if they don't have the Silverlight plugin, or their version is too old. You can change this content to be whatever you want. In particular, you could change it so that it takes you to a page where you can download the Silverlight 4 plugin instead of the official Microsoft Silverlight page.I couldn't find anywhere to download the installer for the Silverlight 4 on the Microsoft website. However, if you happen to have a copy of the this installer lying around somewhere, you could try uploading that to your website and linking to it.