Install-HPImageAssistant



Summary

Installs the latest version of HP Image Assistant (HPIA)

Syntax

Install-HPImageAssistant [[-Extract]] [[-DestinationPath] <String>] [[-CacheDir] <DirectoryInfo>] [[-MaxRetries] <Int32>] [[-Source] <String>] [[-Quiet]] [<CommonParameters>]

Description

This command finds the latest version of HPIA and downloads the SoftPaq. If the Extract parameter is not used, the SoftPaq is only downloaded and not executed.

Parameters

Name Argument Description
Extract If specified, this command extracts SoftPaq content to a specified destination folder. Specify the destination folder with the DestinationPath parameter.

If the DestinationPath parameter is not specified, the files are extracted into a new sub-folder relative to the downloaded SoftPaq executable.
DestinationPath <String> Specifies the path to the folder in which you want to save downloaded and/or extracted files. Do not specify a file name or file name extension. If not specified, the executable is downloaded to the current folder, and the files are extracted into a new sub-folder relative to the downloaded executable.
CacheDir <DirectoryInfo> Specifies a custom location for caching data files. If not specified, the user-specific TEMP directory is used.
MaxRetries <Int32> Specifies the maximum number of retries allowed to obtain an exclusive lock to downloaded files. This is relevant only when files are downloaded into a shared directory and multiple processes may be reading or writing from the same location.

Current default value is 10 retries, and each retry includes a 30 second pause, which means the maximum time the default value will wait for an exclusive logs is 300 seconds or 5 minutes.
Source <String> This parameter is currently reserved for internal use only.
Quiet If specified, this command will suppress non-essential messages during execution.

Examples


PS C:\> Install-HPImageAssistant

PS C:\> Install-HPImageAssistant -Quiet

PS C:\> Install-HPImageAssistant -Extract -DestinationPath "c:\staging\hpia"

See also