使用Inno Setup编译器打包文件夹 [英] Packing folder with Inno Setup compiler

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

问题描述

当我编译安装文件时,它会添加lib文件夹中的文件,而不是文件夹本身.看到图像.但是我在这里想要的是它应该添加lib文件夹以及其中的文件.

When I compile the setup file, it adds the files from the lib folder, but not the folder itself. See the image. But what I want here is that it should add the lib folder as well as the files inside.

我的代码是

Source: "E:\AMS\lib\*"; DestDir: "{app}"; Flags: ignoreversion

推荐答案

只需将文件安装到同名文件夹中即可:

Just install the files into a same-named folder:

Source: "E:\AMS\lib\*"; DestDir: "{app}\lib"; Flags: ignoreversion


请注意,您显然希望Inno Setup以某种方式神奇地确定E:\AMS是根"源文件夹.因此,它应该在其下面维护目录结构.但是在Inno Setup中无法设置此类根文件夹. [Files]部分中的所有条目都是独立的.因此,即使您有以下条目,它也不会改变:


Note that you obviously expect the Inno Setup to somehow magically determine that the E:\AMS is a "root" source folder. And consequently that it should maintain a directory structure below it. But there's no way in Inno Setup to set such root folder. All entries in the [Files] section are independent. So even if you have an entry like the one below, it won't change a thing:

Source: "E:\AMS\*"; DestDir: "{app}"; Flags: ignoreversion

这篇关于使用Inno Setup编译器打包文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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