Inno Setup:打包所有子文件夹的文件夹 [英] Inno Setup: pack folder with all subfolders

查看:705
本文介绍了Inno Setup:打包所有子文件夹的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.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:打包所有子文件夹的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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