用Inno_Setup打包文件夹时怎么排除其中一个文件。
本帖最后由 ldjssoft 于 2013-08-28 22:34:46 编辑 请问用Inno_Setup打包文件夹时怎么排除其中一个文件?
该文件夹下有几十个文件,多个文件夹,我要一个个加进去该累死,也容易出问题。不知道能不能实现我要的目的。
[解决办法]
http://www.jrsoftware.org/ishelp/index.php?topic=filessection
Excludes
Specifies a list of patterns to exclude, separated by commas. This parameter cannot be combined with the external flag.
Patterns may include wildcard characters ("*" and "?"). Note that unlike the Source parameter, a simple Unix-style pattern matching routine is used for Excludes. Dots in the pattern are always significant, thus "*.*" will not exclude a file with no extension (instead, use just "*"). Also, question marks always match exactly one character, thus "?????" will not exclude files with names less than five characters long.
If a pattern starts with a backslash ("\") it is matched against the start of a path name, otherwise it is matched against the end of a path name. Thus "\foo" will only exclude a file named "foo" at the base of the tree. On the other hand, "foo" will exclude any file named "foo" anywhere in the tree.
The patterns may include backslashes. "foo\bar" will exclude both "foo\bar" and "subdir\foo\bar". "\foo\bar" will only exclude "foo\bar".
Examples:
Source: "*"; Excludes: "*.~*"
Source: "*"; Excludes: "*.~*,\Temp\*"; Flags: recursesubdirs