Configure software implicitly
This commit is contained in:
parent
39600c813f
commit
1f20af3bc5
17 changed files with 6 additions and 96 deletions
scripts/Common/Scripts
|
@ -241,17 +241,18 @@ $null = New-Module {
|
|||
Write-Host "Installing $Name…";
|
||||
& $Installer @argumentList;
|
||||
}
|
||||
|
||||
& $installHandler @argumentList -Action ([InstallerAction]::Configure);
|
||||
|
||||
if (-not (Test-SetupUser)) {
|
||||
& $installHandler @argumentList -Action ([InstallerAction]::ConfigureUser);
|
||||
}
|
||||
# ToDo: Automatically configure after installation
|
||||
} elseif ($Action -eq ([InstallerAction]::Configure)) {
|
||||
if ($Configurator) {
|
||||
Write-Host "Configuring $Name…";
|
||||
& $Configurator @argumentList;
|
||||
}
|
||||
|
||||
if (-not (Test-SetupUser)) {
|
||||
$argumentList.Add("action", [InstallerAction]::ConfigureUser);
|
||||
& $installHandler @argumentList;
|
||||
}
|
||||
} elseif ($Action -eq ([InstallerAction]::ConfigureUser)) {
|
||||
if ((-not $Arguments.ContainsKey($userArgument)) -or (-not $Arguments[$userArgument])) {
|
||||
$Arguments.Add($userArgument, ($env:UserName));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue