Copy
Copy Files
Definition
Use this command to copy one or more files to a destination
directory.
This command works in the same way as the DOS command COPY
and also uses the same syntax. You can use wildcards, environment variables
and all variables,
such as windir, winsysdir
etc.
Settings
Input
Source and target files must be specified together with their path.
Include
subdirectories
This option is only used for 32 bit operations (Win9x, WinNT4.x, NT-Service,
Windows 2000/XP).
When using this command with the DSM Runtime Service, please read the
Notes on using the DSM Runtime Service.
Disable file redirection on x64 computers
For reasons of compatibilty, Ivanti DSM maps file and registry access to the default storage location for 32 bit applications (provided that the storage location differs from that of 64-bit applications). File access: whenever a 32-bit application attempts to access %windir%\System32, the access is redirected to %windir%\SysWOW64. Registry commands: when accessing HKEY_LOCAL_MACHINE\SOFTWARE the calls are redirected to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. The x64-switch stops this redirection of file and registry accesses when running the script command on a x64 computer; the eScript command runs on the specified path. CallScript command: the script runs in a 64-bit process.
By default, the Installer
also copies file attributes. When copying files from CD-ROM, you should
disable this option to prevent the Write protection attribute from also
being copied.
The command also operates
with UNC names
(if supported by the network).
If the files specified in the Source files
text box cannot be found, you will not get an error message when executing
the installation package.
If the Installer can’t find a source file during command execution,
this information will be written to the Installer’s log file.
Actions
The command dialog box contains four options for replacing files:
Always
replace
Files with identical names in the target directory will always be replaced.
Replace
only older versions
This option allows you to compare file versions (of existing files).
First, the Installer compares the internal versions of the files (if maintained).
If the internal versions have not been maintained, the Installer compares
the date and time of files having identical names.
If an older file version exists it will be replaced with the newer version.
Never
replace
Files with identical names in the target directory will not be replaced.
Confirm
replace
Files with identical names in the target directory will be replaced only
if the user confirms.
Options
Original files can be backuped:
Create
backup files
Creates backup files of all files updated by a copying process.