title: NSIS read files in folder and run exe's
body: <p>I need the code to read the contents of a folder then run each exe it finds in the folder, exe will change name and will be added and removed as needed. I want this so I do not have to update the code each time I add or remove programs.</p>
  
  <p>something like this:</p>
  
  <p>read ".\data\programs*.exe"
  ExecWait ".\data\programs*.exe"</p>
  
  <p>so if there are 10 exe's then it will run each one for a total of 10 installs
  so if there are 8 exe's then it will run each one for a total of 8 installs</p>
  
  <p>how can I do a read or get for all the files and put into a var, as some of them I will need to do a check and if it equals a particular filename I want it so run with switches.</p>