mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Simplifies products catalog request to use amd64
Always requests the amd64 products catalog regardless of the target architecture, as it already contains media entries for both x64 and arm64. This removes unnecessary architecture-specific branching.
This commit is contained in:
@@ -1934,8 +1934,8 @@ function Get-ProductsCab {
|
||||
[string]$BuildVersion
|
||||
)
|
||||
|
||||
$productsArchitecture = if ($Architecture -eq 'arm64') { 'arm64' } else { 'amd64' }
|
||||
$productsParam = "PN=Windows.Products.Cab.$productsArchitecture&V=$BuildVersion"
|
||||
# Always request the amd64 products catalog because it contains both x64 and arm64 media entries.
|
||||
$productsParam = "PN=Windows.Products.Cab.amd64&V=$BuildVersion"
|
||||
$deviceAttributes = "DUScan=1;OSVersion=10.0.26100.1"
|
||||
|
||||
$bodyObj = [ordered]@{
|
||||
|
||||
Reference in New Issue
Block a user