Fix argument redirection
This commit is contained in:
parent
e7ced15185
commit
b566d63ef2
1 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ $null = New-Module {
|
||||||
[scriptblock] $Configurator = { },
|
[scriptblock] $Configurator = { },
|
||||||
[scriptblock] $UserConfigurator = { },
|
[scriptblock] $UserConfigurator = { },
|
||||||
[InstallerAction] $Action = [InstallerAction]::Install,
|
[InstallerAction] $Action = [InstallerAction]::Install,
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments = @{ }
|
||||||
)
|
)
|
||||||
|
|
||||||
if (-not $Name) {
|
if (-not $Name) {
|
||||||
|
@ -45,7 +45,8 @@ $null = New-Module {
|
||||||
|
|
||||||
foreach ($user in Get-Users) {
|
foreach ($user in Get-Users) {
|
||||||
$Arguments.Add($userArgument, $user);
|
$Arguments.Add($userArgument, $user);
|
||||||
& $installHandler -Action ([InstallerAction]::ConfigureUser) -Arguments $Arguments;
|
$argumentList.Add("action", [InstallerAction]::ConfigureUser);
|
||||||
|
& $installHandler @argumentList;
|
||||||
}
|
}
|
||||||
} elseif ($Action -eq ([InstallerAction]::ConfigureUser)) {
|
} elseif ($Action -eq ([InstallerAction]::ConfigureUser)) {
|
||||||
if ((-not $Arguments.ContainsKey($userArgument)) -or ($null -eq $Arguments[$userArgument])) {
|
if ((-not $Arguments.ContainsKey($userArgument)) -or ($null -eq $Arguments[$userArgument])) {
|
||||||
|
|
Loading…
Reference in a new issue