Skip to content
⌘ NSIS Forum Archive

Recursive use of CopyFiles (File /r without having to put all the file inside the exe

2 posts

grrbzz#

Recursive use of CopyFiles (File /r without having to put all the file inside the exe

im making an installation for a cdrom that can be run directly from the cd or from the harddrive ..i tested two method of installing everything..

using SetOutPath/File compress and inserts everything inside the exe leading to a duplication of the data on the same cd..

using CopyFiles would take a long time since theres approximatly 500files to install..

i am now looking at making a function to copy recursivly . but im wondering if there is something already out to do this faster..

it would save me valuable time if somebody could help me on this.
F. Heidenreich#
Since CopyFiles uses SHFileOperation it's possible to do things like

Name "Test"
Outfile "Test.exe"

Section "Test"
CopyFiles "D:\TEST\*" "C:\"
SectionEnd
All files, subdirectories and files in subdirectories under D:\TEST\ will be copied to C:\

Hope this helps -
Regards,
~ Florian