Visual Studio 设置项目的自定义先决条件
我有一个 Visual Studio 安装项目,并按照 此链接可将 Microsoft .NET Framework 2.0 (KB908002) 的共享加载项支持更新加载到先决条件列表中。该条目出现,但显示以下警告
没有为“Microsoft .NET Framework 2.0 (KB908002) 的共享加载项支持更新”提供“HomeSite”属性,因此该包将发布到同一位置作为引导程序。
我使用从组件供应商的网站选项下载组件。如何为此更新设置主站点以便直接下载并安装更新。我不想将更新与我的设置一起分发。
谢谢
I have a Visual Studio Setup project and have followed the steps mentioned in this link to load the Shared Add-in Support Update for the Microsoft .NET Framework 2.0 (KB908002) to the prerequisites list. The entry appears but there is this following warning shown
No 'HomeSite' attribute has been provided for 'Shared Add-in Support Update for Microsoft .NET Framework 2.0 (KB908002)', so the package will be published to the same location as the bootstrapper.
I use the Download component from the component vendor's website option. How do I set a homesite for this update so that the update is directly downloaded and installed. I do not want to distribute the update along with my setup.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使安装引导程序能够下载并安装 KB908002 补丁中包含的文件,您必须为引导程序的包描述中的每个文件指定一个
HomeSite
属性。此包描述包含在以下位置的名为 package.xml 的 XML 文件中(其中 v6.0A 是 SDK 的版本):描述列出了包含的文件在
PackageFiles
元素内的补丁中。现在,每个PackageFile
元素都可以有一个HomeSite
属性来指定下载 URL。但是,据我所知,Microsoft 不提供这些文件作为单独下载,因此您必须自行托管它们。另一种选择是将文件与您的设置一起分发 - 您仍然可以分发单个包。只需使用 IExpress(Windows 附带)等工具即可生成包含补丁、MSI 和 setup.exe 引导程序的自解压包(详细信息 这里)。
For the setup bootstrapper being able to download and install the files included in the KB908002 patch you would have to specify a
HomeSite
attribute for each of the files in the package description for the bootstrapper. This package description is contained in an XML file named package.xml in the following location (where v6.0A is the version of the SDK):The description lists the files included in the patch within the
PackageFiles
element. Each of thePackageFile
elements can now have aHomeSite
attribute specifying a download URL. However, as far as I know, Microsoft doesn't offer these files as an individual download, so you would have to host them on your own.Another option would be to distribute the files along with your setup - you can still distribute a single package. Just use a tool like IExpress (included with Windows) to generate a self-extracting package containing the patch, the MSI and the setup.exe bootstrapper (details here).