Install-File
PackageDeployment Module Help |
Package Deployment Module (DSM eScript Commands) |
Install-File Cmdlet |
Version 1.0.0.3 |
Install-File
Synopsis
Install Single File
Syntax
Install-File [-File] <String> [-TargetDir] <String> [[-Replace] <String>] [-BreakLock] [-ContinueOnError] [-CreateBackup] [-Wow64] [[-Context] <String>] [<CommonParameters>]
Description
Use this command to install a single file in a target directory. This command works in the same way as the Copy command.
Parameters
-BreakLock <SwitchParameter> |
||||||
Break file lock, if file is locked by the server service is used 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. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-CreateBackup <SwitchParameter> |
||||||
Creates backup files of all files updated by a copying process. |
||||||
|
-File <String> |
||||||
The source file to be installed are specified in the form of a list. Wildcards (? *) and variables can be used. |
||||||
|
-Replace <String> |
||||||
Always: Files with identical names in the target directory will always be replaced. |
||||||
|
-TargetDir <String> |
||||||
The specified source files are installed in the common target path. An installation in subdirectories is not possible. |
||||||
|
-Wow64 <SwitchParameter> |
||||||
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. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |