Dj Nyx
9th February 2004 07:49 UTC
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
9th February 2004 08:15 UTC
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.
Dj Nyx
9th February 2004 08:21 UTC
but is there any chance to display which files are copied yet?
rjstephens
9th February 2004 08:29 UTC
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
9th February 2004 11:54 UTC
You could add this command to the macro
DetailPrint ${FilePath}
This would add the current file to the details list.
Vytautas
rjstephens
9th February 2004 12:12 UTC
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
31st March 2004 07:13 UTC
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
31st March 2004 18:02 UTC
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)...