PDA

View Full Version : Conditional inclusion of data files if exists


JHaigh
13th July 2009, 14:32
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
13th July 2009, 15:46
Use !system with an IF EXIST and IF NOT EXIST like shown here:
http://nsis.sourceforge.net/SetCompiler:_Set_compiler_executable_for_current_script

Stu

demiller9
13th July 2009, 20:58
I thought of this when reading the original question:
File /nonfatal "a file that might not exist"

JHaigh
17th July 2009, 07:47
Thanks guys,

the simple File /nonfatal works a treat