Allow running further installer actions within an installer

This commit is contained in:
Manuel Thalmann 2024-08-05 22:29:20 +02:00
parent 5ba6a48eac
commit b1544a6a60
2 changed files with 20 additions and 8 deletions
scripts/Windows/Software/Windows

View file

@ -12,6 +12,13 @@ param(
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
Start-SoftwareInstaller @PSBoundParameters `
-Installer {
param(
[scriptblock] $Installer
)
& $Installer -Action ([InstallerAction]::Configure)
} `
-Configurator {
$dir = New-TemporaryDirectory;
Push-Location $dir;