Install-File

This command copies a single source file to a destination directory. The command works identically to the Copy-File command.


Settings:

  • Source file
    Specifies the file to be copied including the path. Wildcards * and ? as well as variables are allowed. Use the "..." button to select an existing file (on the packaging system) or enter the path manually.
  • Target file
    Specifies the target file including path. If you want to keep the file name, specify only the destination directory (the last character must be a backslash "\"). Use the "..." button to select an existing file (on the packaging system) or enter the path manually.
  • File Choice
    • Use 32-Bit mode on x64 computer
      If the script is executed on a 64-bit operating system, the counterpart for 32-bit applications SysWOW64 can be used automatically when referring to the SYSTEM32 directory.
  • Overwrite Options
    • Always overwrite
      Specifies that an existing file with the same name is always overwritten.
    • Only overwrite older versions
      This is the default option and specifies that an existing file with the same name is only overwritten if it is older than the file to be copied.
    • Never overwrite
      Specifies that an existing file with the same name is never overwritten.
    • Confirm overwriting
      An existing file with the same name is only overwritten if the user confirms this.
  • File Lock
    • Break file lock, if file is locked by the server service
      If an existing file is currently in use and therefore locked by the server service, existing handles are broken when this option is enabled. This can cause running applications that use the file to stop working.
  • Backup
    • Create backup files
      When the file is replaced by the copy operation, a backup copy of the existing file is created.


Example:

The following example copies the online help of the Packaging PowerBench from the files subdirectory of the package directory into the program directory


Corresponds to DSM eScript command:

  • InstallFile


See also: