如何使用Orca减小1GB MSI文件的大小? [英] How can I reduce the size of a 1GB MSI file using Orca?

查看:75
本文介绍了如何使用Orca减小1GB MSI文件的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个C#WPF应用程序.现在,我已经创建了一个MSI,它将安装该应用程序.但是,文件大小很大.该应用程序包含许多视频和图像文件,这些文件加起来使MSI的容量高达1GB.

I have written a C# WPF application. I have now created an MSI that will install the application. However, the file size is gigantic. The application contains many video and image files, which have combined to make the MSI a whopping 1GB in size.

我尝试使用Orca减小文件大小.我使用另存为"创建了一个全新的MSI,并且还导出了数据库表,然后将它们导入了另一个MSI.在这两种情况下,文件大小都减小到小于1MB,但是安装程序根本无法工作.看起来它不是在压缩内容,而是将其完全删除.

I have tried to reduce the file size with Orca. I have used "Save As" to create a brand new MSI and have also exported the database tables and then imported them to another MSI. In both cases, the file size is reduced to less than 1MB, but then the installer doesn't work at all. Looks like it's not compressing the content, but rather removing it entirely.

如何使用Orca减小MSI文件的大小而又不停止实际安装?如果还有另一种方法,我欢迎您提出任何建议.

How can I use Orca to reduce the MSI file size without stopping the installation from actually working? If there's another way to do it, I'm open to any suggestions.

推荐答案

在线 :您可以在线播放一些视频吗?YouTube?随着时间的推移,它也更易于管理和更新.对于没有下载您产品的用户,是否更容易访问?更适合行销吗?这取决于内容是帮助材料还是您要出售的实际产品.如果没有Internet,可以安装低分辨率版本的视频和图像作为后备机制吗? 压缩 :您正在使用WiX吗?不?选择MSI工具时.如果您使用的是WiX,则可以尝试将 最高压缩级别 用于MSI?( MSI压缩级别).这意味着您必须使用新设置来重建它.有其他替代方法可以做到这一点:

Compression: You are using WiX? No? On selecting an MSI tool. If you are using WiX, then you can try to use the highest compression level for the MSI? (MSI compression levels). This means you have to rebuild it with the new setting. There are alternative elements to do so:

WiX :在WiX中,可以轻松设置压缩级别:

WiX: In WiX it is easy to set the compression level:

<MediaTemplate EmbedCab="yes" CompressionLevel="high" />

在最小的WiX标记中编译MSI的一些速成课程可以在这里找到:透明的铝!标记朝带有内嵌注释的底部通常足以使人们继续前进.在此处查看其他资源: installdude.com (我自己的实验网站-展开左侧导航窗格中的帮助部分).另外,请在顶部的快速搜索部分中检查 "WiX样本" .

A little crash course in minimal WiX markup to compile an MSI can be found here: Transparent aluminum! The markup towards the bottom with inline comments is usually enough for people to get going. See other resources here: installdude.com (my own experimental site - expand help section in left navigation pane). Also check "WiX Samples" in quick search section towards top.

我忘记了 WiX快速入门提示答案 .


链接 :


Links:

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