basing an If on a file search
I am trying to figure out how to do something which I know very well how to do in C++:
A collection of up to twenty exe's can be installed in one mother directory. Let's say they are all named 'Collie', followed by consecutive product numbers, e.g., Collie 1.exe, Collie 2.exe, etc.
In my uninstaller, I would like to base an If condition on whether or not at least one of these files exists, including verifying that the file found in each iteration is not the file asking to be uninstalled. If no other exe is found, then the condition is fulfilled and I will go ahead with comprehensive deletions.
Could I get some counsel on the best way to do this?
IfFileExists looks to me to be structured with Gotos, which I definitely do not prefer; furthermore I do not see how I can employ it as stated above.