View Single Post
Old 23rd November 2015, 21:46   #4
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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 $$"$INSTDIR\*.foo"
loop:
  
StrCmp $"" done
  DetailPrint 
"Found: $1"
  
FindNext $$1
  
Goto loop
done
:
FindClose $

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote