If possible somehow, try to detect the
exact file name from the registry. Or based on some other available info.
If it's really
not possible and you have to search for the file at runtime, use something like:
PHP Code:
FindFirst $0 $1 "$INSTDIR\*.foo"
loop:
StrCmp $1 "" done
DetailPrint "Found: $1"
FindNext $0 $1
Goto loop
done:
FindClose $0