Wix Silverlight 先决条件 [英] Wix Silverlight prerequisite
问题描述
我有一个 Wix 引导程序项目,可以根据需要从网络安装 .Net 框架.不,我想为 Silverlight 做同样的事情.理想情况下来自网络,但如果必须,我会捆绑它.
I have a Wix bootstrapper project that installs .Net framework from the web if needed. No I would like to do the same for Silverlight. Ideally from the web but if I have to I will bundle it.
那么如何将 Silverlight 添加为先决条件?
So how do I add Silverlight as a prerequisite?
推荐答案
已解决:
<ExePackage Id="sl"
Compressed="no"
DownloadUrl="http://go.microsoft.com/fwlink/?LinkID=149156"
SourceFile="C:\Users\mah67\Downloads\silverlight.exe"
Cache="yes"
PerMachine="yes"
Protocol="netfx4"
Vital="yes"
InstallCommand="/q"
Permanent="yes"
Description="Silverlight Runtime"
DisplayName="Silverlight"
SuppressSignatureVerification="yes" >
显然需要源文件属性,以便 Wix 可以在编译时提取有关文件的信息.Compressed="no" 意味着它不应在编译时捆绑.当文件在构建包时不可用时使用 RemotePayload.
The source file attribute is apparently needed so Wix can extract info about the file at compile time. Compressed="no" means that it should not be bundled at compile time. RemotePayload is used when the file isnt available at the time of building the package.
这篇关于Wix Silverlight 先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!