From 2659336ee9a79002db698a9538682a7a4b88b96c Mon Sep 17 00:00:00 2001 From: Zehadi Alam <63765084+zehadialam@users.noreply.github.com> Date: Fri, 16 May 2025 00:26:06 -0400 Subject: [PATCH] Move .NET folder creation code --- FFUDevelopment/BuildFFUVM.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index c422a8e..ee2bbca 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -4706,11 +4706,6 @@ try { WriteLog "Creating $KBPath" New-Item -Path $KBPath -ItemType Directory -Force | Out-Null } - $NETPath = Join-Path -Path $KBPath -ChildPath "NET" - if (-not (Test-Path -Path $NETPath)) { - WriteLog "Creating $NETPath" - New-Item -Path $NETPath -ItemType Directory -Force | Out-Null - } if ($WindowsRelease -in 2016, 2019, 2021 -and $WindowsSKU -like "*LTSC") { $SSUName = """Servicing Stack Update for Windows 10 Version $WindowsVersion for $WindowsArch""" WriteLog "Searching for $SSUName from Microsoft Update Catalog and saving to $KBPath" @@ -4735,6 +4730,11 @@ try { } if ($WindowsRelease -in 2016, 2019, 2021 -and $WindowsSKU -like "*LTSC") { $Name = "Cumulative update for .net framework windows 10 $WindowsVersion $WindowsArch" + $NETPath = Join-Path -Path $KBPath -ChildPath "NET" + if (-not (Test-Path -Path $NETPath)) { + WriteLog "Creating $NETPath" + New-Item -Path $NETPath -ItemType Directory -Force | Out-Null + } $NETFileName = Save-KB -Name $Name -Path $NETPath WriteLog "Latest .NET Framework cumulative update saved to $NETPath\$NETFileName" }