請問用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
不包括
指定要排除的模式列表,以逗號分隔。此參數不能與外部標志相結合。
模式可以包含通配符(“*”和“?”)。需要注意的是不同的源參數,一個簡單的UNIX風格的模式匹配的程序是用來排除。圖案中的點始終是重要的,因此“* *”不會排除一個沒有擴展名的文件(相反,只使用“*”)。而且,問號總是與一個字符匹配,因此“????“??”不包括文件名不少於五個字符長。
如果一個模式從一個反斜杠(“\”)它是對一個路徑名的開始匹配,否則就是對路徑名的末尾。因此,“foo”只會排除一個文件名為“foo”在樹下。另一方面,“foo”將排除任何文件名為“foo”樹中的任何地方。
該模式可能包括反斜杠。”Foo \酒吧”將排除“foo”酒吧”和“子目錄\食品\酒吧”。”\富\酒吧”只會排除“foo”吧”。
Examples:
Source: "*"; Excludes: "*.~*"
Source: "*"; Excludes: "*.~*,\Temp\*"; Flags: recursesubdirs