如何动态更新product.wxs文件

发布于 2024-08-13 14:40:44 字数 151 浏览 1 评论 0原文

我想制作一个包含动态屏幕保护程序的应用程序。用户可以从 PC 中选择多个图像并生成 swf 文件。所以我想动态地在 wix 项目中包含 swf 文件和图像。并想要生成 MSI 文件。有什么方法可以动态添加图像路径和 swf 文件,

请尽快回复我

Samir

i want to make an application which includes dynamic screensaver. User can select multiple images from their PC and generate swf file. so i want to include swf file and images in the wix project dynamically. and want to generate an MSI file.is there any way to add images path and swf file dynamically

reply me soon

Samir

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肤浅与狂妄 2024-08-20 14:40:44

wxs 文件只是 XML。您可以使用任何 XML API 在应用程序中编辑它。在 .NET 中,您可以通过在 System.Xml.XmlDocumentSystem.Xml.Linq.XDocument

或者,您可以使用wix中包含的heat.exe工具来“收获”(即为其生成wxs文件)单个文件或整个文件夹。这不允许您精确编辑 wxs 文件,但这不是问题,因为 wix 设置可以包含多个 wxs 文件。

来自 heat.exe 文档

收获文件

heat file -ag -template:fragment -out file.wxs ".\My Files\File.dll"

这将收获文件“File.dll”
作为文件的单个片段
文件.wxs。组件指南将是
设置为“*”。

A wxs file is just XML. You can edit it in your application with any XML API. In .NET, you can do this by loading the file in a System.Xml.XmlDocument or System.Xml.Linq.XDocument.

Alternatively, you can use the heat.exe tool included in wix to "harvest" (i.e. generate a wxs file for) individual files or an entire folder. This doesn't allow you to edit a wxs file exactly, but that is not a problem because a wix setup can consist of multiple wxs files.

From the heat.exe documentation:

Harvest a file

heat file -ag -template:fragment -out file.wxs ".\My Files\File.dll"

This will harvest the file "File.dll"
as a single fragment to the file
file.wxs. The component guid will be
set to "*".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文