![]() |
Encapsulated IfFileExists
Hi,
Is it possible to encapsulate multiple IfFileExists? I`m trying to search for multiple files on the user`s hdd, and if one of them isn`t there, to search a messagebox. Another example is, searching for multiple files (that are in multiple directories and to search for some registry keys. If one of these (Files or Registry Keys) isn`t there, to show the messagebox. I tried to make something like this: code: But it seems that this isn`t working. I tried with registry too but after it check that the file exists it jumps the registry checking. Any suggestions? |
You forgot to jump out of each block.
PHP Code:
PHP Code:
|
Thanks for the info.
What if Test.txt exists and Test2.txt doesn`t? In your example, if he find Test.txt it stops searching for Test2.txt. How can i do so that it will check both files and if one of them isn`t there it`ll pop a message box? I must do it for several files so the start is from two :P. |
You're looking for ${IfNot} and ${AndIfNot}. See nsis.sourceforge.net/LogicLib or your NSIS\Examples\LogicLib.nsi for examples on what LogicLib can do.
|
Ok.
Thanks for helping me. |
| All times are GMT. The time now is 04:33. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.