Copy a file/folder

This action offers the possibility to copy a single file or an entire group of files (using a wildcard) to another destination folder.
To copy an entire folder, just specify the folder name followed by \*.*, like %SRC%\*.* or c:\my documents\*.pas.

Property Name

Data Type

Description

Destination

String

If UseWildcard is set to false, this property indicates the full path + filename of the destination file. For example: %DESTPATH%\Hello.exe

If UseWildcard is set to true, this property indicates the folder where all source files should be copied. For example %DESTPATH%\My Folder\
(warning: it should always end by a directory slash \).

MoveFiles

Boolean

Only available if UseWildcard is set to true. Indicates that the source files should be deleted once they have been copied.
OverwriteIfExistsBooleanIf the destination file exists, indicates whether the package should overwrite the existing file or skip it. Only used if UseWildcard is set to false.
SourceString

If UseWildcard is set to false, this is the path to the source file to be copied to the Destination file.

If UseWildcard is set to true, this is a path and the source wildcard. For instance, %SYS%\My shared\*.dll

UseWildcard

BooleanIndicates whether the package should copy a single file (value=true) or an entire group of files determined by a source wildcard (value=false).

Notes:

  • This function does not add any reference for the new file in the uninstaller log file. You should add it manually using this action.

  • The destination path must exist before copying your file! The function does not support creating folders. Use a Create a folder custom action.


  Paquet Builder Help - Copyright © G.D.G. Software. All rights reserved.