CopyFiles [/SILENT] [/FILESONLY] filespec_on_destsys destination_path \
[size_of_files_in_kb] |
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. Uses SHFileOperation, so the user
might see a status window of the copy operation if it is large (to disable this,
use /SILENT). The last parameter specifies how big the copy is (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.
CreateShortCut link.lnk target.file [parameters \
[icon.file [icon_index_number \
[start_options [keyboard_shortcut [description]]]]]] |
Creates a shortcut 'link.lnk' that links to 'target.file', with
optional parameters 'parameters'. The icon used for the shortcut is
'icon.file,icon_index_number'; for default icon settings use empty strings for
both icon.file and icon_index_number. start_options should be one of:
SW_SHOWNORMAL, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, or an
empty string. keyboard_shortcut should be in the form of 'flag|c' where flag can be
a combination (using |) of: ALT, CONTROL, EXT, or
SHIFT. c is the
character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed
in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is used for the
working directory. You can change it by using "SetOutPath" before
creating the Shortcut. description should be the description of the shortcut,
or comment as it is called under XP. The error flag is set if the shortcut
cannot be created (i.e. the path does not exist, or some other error).