Inno Setup 编译器软件,菜鸟求教,“磁盘跨越必须启用,是为了创建2100000000字节的安装程序”怎么解决
推荐于2018-02-23 · 知道合伙人软件行家
据 InnoSetup 软件的使用帮助:
[Setup]: DiskSpanning
Valid values: yes or no
Default value: no
Description:
If set to yes, the disk spanning feature will be enabled. Instead of storing all the compressed file data inside SETUP.EXE, the compiler will split it into multiple SETUP-*.BIN files -- known as "slices" -- suitable for copying onto separate floppy disks, CD-ROMs, or DVD-ROMs. Each generated slice contains a number in its name which indicates the disk onto which it should be copied. (For example, SETUP-2.BIN should be placed on disk 2.) The generated SETUP.EXE always goes on disk 1 along with the SETUP-1*.BIN file.
The size of each slice and the number of slices to create for each disk are determined by the values of the DiskSliceSize and SlicesPerDisk [Setup] section directives, respectively. Other disk spanning-related directives that you may want to tweak include DiskClusterSize and ReserveBytes.
Note that it is required that you set this directive to yes if the compressed size of your installation exceeds 2,100,000,000 bytes, even if you don't intend to place the installation onto multiple disks. (The installation will still function correctly if all the SETUP-*.BIN files are placed on the same disk.)
上面的最后一段,明确提示,打包编译生成的安装包文件,如果最终的文件大小超过2100000000字节,那么就必须设置参数(DiskSpanning)值为 yes (缺省值为 no),具体做法是,在上面的 [Setup] 段里,再添加一个参数,如下如示:
DiskSpanning=yes
据 InnoSetup 软件的使用帮助:
[Setup]: DiskSpanning
Valid values: yes or no
Default value: no
Description:
If set to yes, the disk spanning feature will be enabled. Instead of storing all the compressed file data inside SETUP.EXE, the compiler will split it into multiple SETUP-*.BIN files -- known as "slices" -- suitable for copying onto separate floppy disks, CD-ROMs, or DVD-ROMs. Each generated slice contains a number in its name which indicates the disk onto which it should be copied. (For example, SETUP-2.BIN should be placed on disk 2.) The generated SETUP.EXE always goes on disk 1 along with the SETUP-1*.BIN file.
The size of each slice and the number of slices to create for each disk are determined by the values of the DiskSliceSize and SlicesPerDisk [Setup] section directives, respectively. Other disk spanning-related directives that you may want to tweak include DiskClusterSize and ReserveBytes.
Note that it is required that you set this directive to yes if the compressed size of your installation exceeds 2,100,000,000 bytes, even if you don't intend to place the installation onto multiple disks. (The installation will still function correctly if all the SETUP-*.BIN files are placed on the same disk.)
上面的最后一段,明确提示,打包编译生成的安装包文件,如果最终的文件大小超过2100000000字节,那么就必须设置参数(DiskSpanning)值为 yes (缺省值为 no),具体做法是,在上面的 [Setup] 段里,再添加一个参数,如下如示:
DiskSpanning=yes
DiskSliceSize = 分割的文件大小
广告 您可能关注的内容 |