开发者

How can I make Inno Setup ignore empty directories?

开发者 https://www.devze.com 2022-12-12 21:36 出处:网络
My Inno Setup script includes a directory: [Files] ... Source: C:\\MyProg\\Tools\\*.*; Destdir: {app}\\Tools

My Inno Setup script includes a directory:

[Files]
...
Source: C:\MyProg\Tools\*.*; Destdir: {app}\Tools
...

But sometimes this directory is empty and in that case Inno开发者_开发技巧 Setup stops with an error "No files matching ...".

My current workaround is adding an empty dummy file to that directory.

Can I make Inno Setup ignore this directory if it is empty?


Did you try the skipifsourcedoesntexist flag?

[Files]
...
Source: C:\MyProg\Tools\*.*; Destdir: {app}\Tools; Flags: skipifsourcedoesntexist 
...
0

精彩评论

暂无评论...
验证码 换一张
取 消