Archive: external Files


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 ***".


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.


but is there any chance to display which files are copied yet?


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"?


You could add this command to the macro

  DetailPrint ${FilePath}
This would add the current file to the details list.

Vytautas

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.


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?

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)...