FileCopy: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(SF: Cleaned page.) |
(BF: Forgot "!define FileCopy `!insertmacro FileCopy`". BF: Forgot quotes.) |
||
Line 4: | Line 4: | ||
== How To Use == | == How To Use == | ||
<highlight-nsis> | <highlight-nsis> | ||
${FileCopy} | ${FileCopy} `filespec_on_destsys` `destination_path` | ||
</highlight-nsis> | </highlight-nsis> | ||
== The Script == | == The Script == | ||
<highlight-nsis> | <highlight-nsis> | ||
!define FileCopy `!insertmacro FileCopy` | |||
!macro FileCopy FilePath TargetDir | !macro FileCopy FilePath TargetDir | ||
CreateDirectory ${TargetDir} | CreateDirectory `${TargetDir}` | ||
CopyFiles ${FilePath} ${TargetDir} | CopyFiles `${FilePath}` `${TargetDir}` | ||
!macroend | !macroend | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: Joelito | Page author: Joelito |
Revision as of 13:12, 17 April 2005
Description
This macro makes "CopyFiles" to don't set the error flag when copying files to an inexistant folder.
How To Use
${FileCopy} `filespec_on_destsys` `destination_path`
The Script
!define FileCopy `!insertmacro FileCopy` !macro FileCopy FilePath TargetDir CreateDirectory `${TargetDir}` CopyFiles `${FilePath}` `${TargetDir}` !macroend
Page author: Joelito