2013-11-25 34 views
0

我试图为我的应用程序生成一个安装程序(打包应用程序),但它包含大量的视频文件,使整个项目的总大小为2.5GB。TideSDK - 大于2GB的包应用程序

TideSDK引发以下错误每次我尝试包:

light.exe : error LGHT0296 : An error (E_FAIL) was returned while adding files to a CAB file. This most commonly happens when creating a CAB file 2 GB or larger. Either reduce the size of your installation package, raise Media/@CompressionLevel to a higher compression level, or split your installation package's files into more than one CAB file. Done packaging! 

它给了我3个解决方案,但是,我不知道我怎么能提高媒体/压缩级别,也不怎么分的安装包的文件分成多个CAB。

任何人都经历过同样的问题? :(

+0

Wix链接器(light.exe)引发上述错误,而不是TideSDK,我想。 – Somedust

回答

0

在某处,.wxs文件应该是类似这样的一行:

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> 

您需要添加另一个具有不同的ID,像这样:

<Media Id="2" Cabinet="media2.cab" EmbedCab="yes" /> 

,然后指定您的组件或文件元素中的DiskId属性:

<File Id="FirstLargeFile.avi" Name="FirstLargeFile.avi" DiskId="1" /> 
<File Id="SecondLargeFile.avi" Name="SecondLargeFile.avi" DiskId="2" /> 
+0

如果TideSDK包含所有安装逻辑,可能不适用。 – Somedust