如何在 Visual Studio 2017 中为超过 24 GB 文件的项目生成 msi/exe 安装程序文件? [英] How to generate msi/exe installer file in visual studio 2017 for a project of over 24 GB files?

查看:14
本文介绍了如何在 Visual Studio 2017 中为超过 24 GB 文件的项目生成 msi/exe 安装程序文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WPF 项目,它的资源(视频)超过 24 GB,如果在 Visual Studio 2017 中更新,我已将配置设置为复制.我想生成包含我所有资源(视频)的安装程序文件位于 debug/bin 文件夹中.我已经尝试过 Microsoft Visual Studio 安装程序扩展,但它只生成 700Kb 的 exe 文件.

I have a WPF project which has a resource (videos) with over 24 GB, I have set the configuration to Copy if newer in Visual Studio 2017. I want to generate installer files that will include all my resources (videos) that are inside the debug/bin folder. I have tried Microsoft Visual Studio installer extension but that generates only 700Kb of exe file.

请提出建议.

推荐答案

在线?:老实说,我会检查是否可以放置这样的视频在线(甚至是 Youtube?)而不是将它们捆绑在一个设置中 - 特别是如果您可能想要更新它们.这将需要 服务器带宽(除非你是 Youtube),但它也将允许较小的设置大小,这是非常理想的(构建周转时间和处理的整体混乱大文件)以及随着时间的推移更好的内容可维护性(您可以立即更新所有用户的视频 - 您甚至可以删除突然不想再分发的视频,或者您可以将视频替换为较低或您认为合适的更高分辨率版本).此外,您还可以跟踪人们实际观看的视频,如果您提供了这样做的方法,您还可以收集用户的反馈.我不确定所涉及的版权法律问题,但如果这些是您的视频,您应该没问题.将 YouTube 用于低分辨率版本怎么样?然后为高分辨率版本单独设置千兆字节大小?如果在线版本有消失的风险并且您不想在本地进行全尺寸安装,您可以在设置中包含一些非常低分辨率版本的视频.

Online?: In all honestly, I would check if it is possible to put videos like that online (even Youtube?) instead of bundling them inside a setup - especially if you might ever want to update them. This will require a server and bandwidth (unless you Youtube it), but it will also allow smaller setup size which is very desirable (build turnaround time and overall messiness of dealing with large files) and also much better maintainability over time for the content (you can update the videos for all users instantly - and you can even take videos down that you suddenly don't want distributed anymore, or you can replace the videos with lower or higher resolution versions as you see fit). Further you can track what videos people actually view, and you can gather feedback from the users if you provide a means to do so. I am not sure of the copyright and legal issues involved, but if these are your videos you should be fine. How about using YouTube for low-res versions? And then a separate gigabyte-size setup for high-res versions? You could include some very low-res versions of the videos in your setup if the online versions are at risk of disappearing and you want no local full-size installation.

大文件问题:同样重要的是要指出您不能在 FAT32 分区和其他分区上存储这么大的文件文件系统也可能有问题.大文件很痛苦.现在部署工具中可能有我没有使用过的缓存功能——我很确定 WiX 有这个,我认为其他工具也有.或许 BogdanUrman 可以发表评论?

Large Files Concerns: It is also important to point out that you can't store a file that big on FAT32 partitions and other file systems might have problems as well. Large files are painful. There may be caching features in deployment tools now that I have not used - I am pretty sure WiX has this, and I think the other tools do as well. Maybe Bogdan or Urman can comment?

部署工具:我有 此处是不同部署工具的特别摘要.WiX 是免费和开源的,其他大多数工具都是商业的,非常适合大多数部署任务.

Deployment Tools: I have an ad-hoc summary of different deployment tools here. WiX is free and open source, most of the other tools are commercial and very good for most deployment tasks.

  • Here is a WiX quick start piece
  • Here is an Advanced Installer Portal & User Guide
  • Installshield 2018 online documentation
  • PACE Suite PDF (large download)

VS 安装程序项目限制:Visual Studio 安装程序项目有很多限制,这里有一个 这些限制的总结.

外部源文件:MSI 支持外部源文件.所有部署工具(包括免费的 WiX)都应该能够支持这一点,但我不确定 Visual Studio 安装程序项目是否支持它.使用这种方法,您可以快速重建测试和 QA 设置,而无需为每个构建压缩整个视频文件夹 - 消除大型构建的疯狂.哇哦!这大大缩短了周转时间.对于最终版本,您可以压缩所有内容 - 如果需要.

External Source Files: MSI supports external source files. All deployment tools - including the free WiX - should be able to support this, but I am not sure that Visual Studio Installer Projects supports it. Using this approach you can rebuild test and QA setups quickly without compressing the whole video folder for every build - vanquishing the lunacy of large builds. Woho! This drastically improves turnaround time. For the final release you can compress everything - if need be.

我从来没有用过这么多,但在 WiX 中它会是这样的:

I have never used this much, but in WiX it would be something like:

<Media Id="1"  />

<..>

<Component Feature="MainApplication">
   <File Source="TestLicenseAgreement.rtf" Compressed="no" />
</Component>

我不确定您是否可以将文件保留在原处,或者是否始终将其复制到构建输出文件夹中.

I am not sure if you can have the file remain where it is, or if it is copied to the build output folder at all times.

Need-For-Speed:这里有一些其他选项(工具之间的可用性不同):加快 WiX-Installer 的构建过程(填充文件、轻度压缩、发布标志、编译器选项、拆分大型设置到先决条件设置等...).

Need-For-Speed: Some further options here (availability differs between tools): Speed up Build-Process of WiX-Installer (shimming files, light compression, release flags, compiler options, splitting large setups into prerequisite setups, etc...).

这篇关于如何在 Visual Studio 2017 中为超过 24 GB 文件的项目生成 msi/exe 安装程序文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆