Fix possible non-existent variable
This commit is contained in:
parent
b4d4e6d10f
commit
ee4434f91a
1 changed files with 3 additions and 2 deletions
|
@ -7,9 +7,10 @@
|
||||||
|
|
||||||
function Invoke-WindowsInstallation([Context] $context)
|
function Invoke-WindowsInstallation([Context] $context)
|
||||||
{
|
{
|
||||||
|
$configPath = "$PSScriptRoot/../Config";
|
||||||
|
$softwarePath = "$PSScriptRoot/../Software";
|
||||||
|
|
||||||
if (-not $context.Get("InitialConfiguration")) {
|
if (-not $context.Get("InitialConfiguration")) {
|
||||||
$configPath = "$PSScriptRoot/../Config";
|
|
||||||
$softwarePath = "$PSScriptRoot/../Software";
|
|
||||||
|
|
||||||
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue