Skip to content
⌘ NSIS Forum Archive

external Files

8 posts

Dj Nyx#

external Files

Last week I made a Setup (sources = 600MB)

I try to copy all Files from a external Folder
(!insertmacro FileCopy)

but with this macro i get the "standard-windows-copy-dialog".

is there any chance to copy this files (external) like with "file /r ***".
rjstephens#
there's a parameter you can give to it to make the dialog box silent. In the macro code, change the line

---
CopyFiles ${FilePath} ${TargetDir}
---

to

---
CopyFiles /SILENT ${FilePath} ${TargetDir}
---

\and try it.
rjstephens#
i don't think so. If there was a way, chances are it would be in the manual somewhere, and it doesn't appear to be. What feature of "File" do you want that isn't included in "CopyFiles"?
Vytautas#
You could add this command to the macro
  DetailPrint ${FilePath}
This would add the current file to the details list.

Vytautas
rjstephens#
i new there was a way to do that. I just couldn't remember it. I'll write that down in my NSIS notebook. Thanks.
Dj Nyx#
one more question..

i copy this files with *.*
!insertmacro FileCopy "$INSTDIR\config\dlls\*.*" "$SYSDIR" 
and my macro...
!macro FileCopy FilePath TargetDir
    CreateDirectory "${TargetDir}"
    CopyFiles /SILENT "${FilePath}" "${TargetDir}"
    DetailPrint "${FilePath}"
!macroend 
is there anyway to display which files are copied yet?
niteflyer#
Maybe you should try the nsExec-PlugIn: it lets you execute console-commands like xcopy and redirects the output into the details view of the installer (or a file or the stack, see docs)...