Wix:如何在刻录管理的 UX 中显示 MSI 包的大小
我有一个 Wix 3.6 托管引导程序,用户可以在其中选择要下载和安装的各个软件包。我想显示每个包的下载大小。如何访问 Bundle
中每个包的文件大小?
我猜想这个信息在 Wix 框架中的某个地方可用(因为文件哈希用于验证下载的文件),但我没有找到它。
我有一个解决方法的想法,但对我来说这将是更多的实现:
- 以编程方式生成一个
wxs
文件,其中包含包含包文件大小的Variable
元素。这些变量将由引导程序读取。
I have a Wix 3.6 managed bootstrapper in which the user can select individual packages to download and install. I want to show the download size of each package. How can I access the file size of each packages in the Bundle
?
I guess this information is available somewhere in the Wix framework (because the file hashes are used to validate the downloaded files), but I did not find it.
I have an idea for a workaround, but it would be more implementation for me:
- Have a
wxs
file generated programmatically that containsVariable
elements containing the file size of the packages. Those variables would be read by the bootstrapper.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建捆绑包后,
BootstrapperApplicationData.xml
将添加到捆绑包中。该 XML 文件包含有关捆绑包和所包含包的大量元数据。您的引导程序应用程序代码可以通过查找与引导程序应用程序 dll 所在的同一目录来加载此文件。When your bundle is created, a
BootstrapperApplicationData.xml
is added to the bundle. That XML file contains a lot of metadata about the bundle and contained packages. Your bootstrapper application code can load this file by looking in the same direcotry as your bootstrapper application dll lives.我没有找到如何使用burn API,但我实现了自己的解决方法:
I did not found how by using the burn API, but I implemented my own workaround: