Inno Setup:打包所有子文件夹的文件夹

编程入门 行业动态 更新时间:2024-10-11 11:21:25
本文介绍了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:打包所有子文件夹的文件夹

本文发布于:2023-05-28 00:44:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/308181.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!