Install-Assembly
PackageDeployment Module Help |
Package Deployment Module |
Install-Assembly Cmdlet |
Version 4.0.0.5 |
Install-Assembly
Synopsis
Installs .NET Assembly
Syntax
Install-Assembly [-SourceFile] <String> [[-TargetFile] <String>] [[-InstallerClassParameterList] <String>] [-BreakLock] [-ContinueOnError] [-CreateBackup] [-ExecuteInstallerClass] [-InstallIntoGAC] [-UninstallCurrentVersions] [[-Replace] <String>] [[-Context] <String>] [<CommonParameters>]
Description
Installs a .NET Assembly in a target directory or in the Global Assembly Cache (GAC). The respective installation file has to be selected (exe or dll). Please also specify the target directory, even if you do not want to install in the GAC.
InstallAssembly automatically determines the required .NET Framework version for the Assembly and checks whether this version exists on the managed computer during installation. The command is only executed if the required version exists!
The execution of InstallAssembly corresponds to the .NET Framework tool InstallUtil.exe.
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. |
||||||
|
-ExecuteInstallerClass <SwitchParameter> |
||||||
If you want to use specific parameters for installing the .NET Assembly, please enter the values here. |
||||||
|
-InstallerClassParameterList <String> |
||||||
If you want to use specific parameters for installing the .NET Assembly, please enter the values here. |
||||||
|
-InstallIntoGAC <SwitchParameter> |
||||||
Select this option if you want to install the selected .NET Assembly in the GAC. No further specifications are required. |
||||||
|
-Replace <String> |
||||||
Always: Files with identical names in the target directory will always be replaced. |
||||||
|
-SourceFile <String> |
||||||
Source file. |
||||||
|
-TargetFile <String> |
||||||
Target file. |
||||||
|
-UninstallCurrentVersions <SwitchParameter> |
||||||
Select this additional option to uninstall existing versions of the selected .NET Assembly in the GAC; only the reinstalled version is available then. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |