PDA

View Full Version : Adding files at runtime


lozio
30th April 2007, 12:34
Hi
I searched the docs and forum but found no answer to my problem.
I created a package that need to gather 2 files at install time, and put them into a specific dir of my installation.
These can be put in a specific directory (say: desktop) before starting the installer.
Anyone as an idea?

Thanks

Comm@nder21
30th April 2007, 14:09
nsis docs: 4.9.3.2 CopyFiles (]http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.2)

lozio
30th April 2007, 15:07
Thanks, your searching capabilities are far better than mine :)
Any ideas on the way to have the source files asked at install time (just like [browse...])?
Thanks again

Red Wine
30th April 2007, 15:26
Browse if you want the end user to specify where those files are located, in this case you should set up a custom page with a DirRequest/FileRequest control.
Also you may do the search kinda unattended e.g. in function .onInit with ${Locate} before installer's gui comes up.