From 353502df47d5d49cc33738bd512d2534e1eba17c Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 4 Feb 2005 16:39:19 +0000 Subject: [PATCH] added a note about relative paths and CopyFiles git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3898 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/generalpurpose.but | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/src/generalpurpose.but b/Docs/src/generalpurpose.but index 8f1354d5..271bc257 100644 --- a/Docs/src/generalpurpose.but +++ b/Docs/src/generalpurpose.but @@ -16,7 +16,7 @@ Calls a function_name inside a NSIS extension DLL. See Contrib\\ExDLL for an exa Copies files from the source to the destination on the installing system. Useful with $EXEDIR if you want to copy from installation media, or to copy from one place to another on the system. You might see a Windows status window of the copy operation if the operation takes a lot of time (to disable this, use /SILENT). The last parameter can be used to specify the size of the files that will be copied (in kilobytes), so that the installer can approximate the disk space requirements. On error, or if the user cancels the copy (only possible when /SILENT was omitted), the error flag is set. If /FILESONLY is specified, only files are copied. -If no absolute path is specified the current folder will be used. The current folder is the folder set using the last \R{setoutpath}{SetOutPath} instruction. If you have not used \R{setoutpath}{SetOutPath} the current folder is usually \R{varother}{$EXEDIR}. +Fully-qualified path names should always be used with this instruction. Using relative paths will have unpredictable results. \c CreateDirectory $INSTDIR\backup \c CopyFiles $INSTDIR\*.dat $INSTDIR\backup