Skip to content
⌘ NSIS Forum Archive

Conditional inclusion of data files if exists

4 posts

JHaigh#

Conditional inclusion of data files if exists

Hi,

Is there a way to include some data files if they exist in a specific location and to ignore them if they do not exist. I have a peculiar situation where if i want to load a specific subset of software then I can pre generate a file list, which I need to include in a specific location. If I don't want to do a partial update I want to not pre generate these files and not include them into my installer. Is there a way to do this without having 2 seperate installers?

TIA

Jonathan
Afrow UK#
Use !system with an IF EXIST and IF NOT EXIST like shown here:


Stu
demiller9#
I thought of this when reading the original question:
File /nonfatal "a file that might not exist"