Inno Setup 中的自定义磁盘跨越

Custom Disk Spanning in Inno Setup

有什么方法可以Components基于分区的自定义磁盘跨越吗?

例如:

[Components]
Name: "c1"; Description: "Component 1"
Name: "sc2"; Description: "Special Component 2"
Name: "redist"; Description: "Redistributables"

[Files]
Source: component.exe; DestDir: "{app}"; Components: c1
Source: "specialfolder\*"; DestDir: "{app}"; Components: sc2
Source: redist.msi; DestDir: "{app}"; Components: redist

编译后想看的文件:setup.exe, c1.bin, special.bin, redist.bin

谢谢。

不,这是不可能的。

如果您的目的是让用户只获得 he/she 需要的部分,您可以使用 extern 标志和 {src} 源目录。虽然这不是真正的磁盘跨越。但它将允许用户在 setup.exe 中只拥有安装所需的文件。如果您确实需要将文件存储在单独的磁盘上,您可以在 Pascal 脚本中实现附加磁盘提示和实际安装。