Fix possible non-existent variable

This commit is contained in:
Manuel Thalmann 2023-07-26 14:56:17 +02:00
parent b4d4e6d10f
commit ee4434f91a

View file

@ -7,9 +7,10 @@
function Invoke-WindowsInstallation([Context] $context)
{
$configPath = "$PSScriptRoot/../Config";
$softwarePath = "$PSScriptRoot/../Software";
if (-not $context.Get("InitialConfiguration")) {
$configPath = "$PSScriptRoot/../Config";
$softwarePath = "$PSScriptRoot/../Software";
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";