开发者

Wix: How to show the size of MSI packages in a burn managed UX

开发者 https://www.devze.com 2023-04-10 19:03 出处:网络
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 p

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 contains Variable elements containing the file size of the packages. Those variables would be read by the bootstra开发者_JAVA百科pper.


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.


I did not found how by using the burn API, but I implemented my own workaround:

If the local file is present
   query the file system
else
   query the web server
0

精彩评论

暂无评论...
验证码 换一张
取 消