InstallFile
Install Single File
Definition
Use this command to install a single file in a target
directory.
This command works in the same way as the Copy command.
Options
(see also: Copy)
Disable file redirection on x64 machines
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.
Overwrite
options
If you select the options Always
replace or Replace older versions only,
you additionally switch to the Windows unattended
mode. In this mode, the Installer automatically checks whether
the files to be installed are currently in use (and therefore cannot be
installed while Windows is running). The respective files are listed;
Windows is automatically restarted and the files are installed. Use the
ClearRestartFlags command to avoid the automatic
restart.
File lock
If the file is locked by the Server Service, use
the option Break file lock, if file is locked by
the server service in order to update files locked by the Server
Service during Windows runtime without causing a reboot. This option is
valid for the selected object and can be specified in the configuration
table in the General Package Properties > Server
Service File Lock Settings.
Please note that by using the option Break file lock, if file is locked by the server service, the managed computer's system may crash when server applications are active!