我在.iss文件中有这一行:
Source: "..\Tcl\*"; DestDir: "{app}\Tcl"; Flags: ignoreversion打包文件夹Tcl.但是,它仅在文件夹中使用文件,而在Tcl中不使用子文件夹.有没有办法使用所有子文件夹和文件来提取整个文件夹Tcl? (不逐行列出所有子文件夹).
which packs folder Tcl. But it takes only files inside folder, but does not take subfolders inside Tcl. Is there a way to take entire folder Tcl with all subfolders and files? (without listing all that subfolders line by line).
Inno设置5.4.2.
Inno Setup 5.4.2.
推荐答案是的.只需将 recursesubdirs 标志包括在您的[Files]部分条目中.帮助会在以下内容中说明此标志:
Yes, there is. Simply include the recursesubdirs flag to your [Files] section entry. The help says about this flag the following:
指示编译器或安装程序也搜索源 源目录下子目录中的文件名/通配符.
Instructs the compiler or Setup to also search for the Source filename/wildcard in subdirectories under the Source directory.
因此,您要做的就是以这种方式修改[Files]部分的条目:
So, all you should do is modify your [Files] section entry this way:
[Files] Source: "..\Tcl\*"; DestDir: "{app}\Tcl"; Flags: ignoreversion recursesubdirs更多推荐
Inno Setup:打包所有子文件夹的文件夹
发布评论