Tutorial :How can I make Inno Setup ignore empty directories?



Question:

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?


Solution:1

Did you try the skipifsourcedoesntexist flag?

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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »