Remove unused image path and image names from BuildFFUVM_UI.ps1, fixed some tooltip issues

This commit is contained in:
rbalsleyMSFT
2025-02-06 19:35:05 -08:00
committed by rbalsleyMSFT
parent 793830ab21
commit f121505c50
2 changed files with 68 additions and 145 deletions
-26
View File
@@ -6,7 +6,6 @@ param()
# SECTION 1: Variables & Constants
# --------------------------------------------------------------------------
$FFUDevelopmentPath = $PSScriptRoot
$infoImagePath = Join-Path $PSScriptRoot "info.png"
$AppsPath = Join-Path $FFUDevelopmentPath "Apps"
$OfficePath = Join-Path $AppsPath "Office"
@@ -59,28 +58,6 @@ $skuList = @(
'Standard (Desktop Experience)','Datacenter','Datacenter (Desktop Experience)'
)
$imageNames = @(
"imgFFUNameInfo",
"imgISOPathInfo",
"imgWindowsSKUInfo",
"imgVMSwitchNameInfo",
"imgVMHostIPAddressInfo",
"imgInstallOfficeInfo",
"imgInstallAppsInfo",
"imgInstallDriversInfo",
"imgCopyDriversInfo",
"imgFFUDevPathInfo",
"imgOfficePathInfo",
"imgCopyOfficeConfigXMLInfo",
"imgOfficeConfigXMLFileInfo",
"imgMakeInfo",
"imgModelInfo",
"imgDownloadDriversInfo",
"imgDriversFolderInfo",
"imgPEDriversFolderInfo",
"imgCopyPEDriversInfo"
)
# Full list of Windows releases (if ISO path != blank)
$allWindowsReleases = @(
[PSCustomObject]@{ Display = "Windows 10"; Value = 10 },
@@ -338,9 +315,6 @@ $reader = New-Object System.IO.StringReader($xamlString)
$xmlReader = [System.Xml.XmlReader]::Create($reader)
$window = [Windows.Markup.XamlReader]::Load($xmlReader)
# Assign images
foreach ($imgName in $imageNames) { Set-ImageSource -window $window -imageName $imgName -sourcePath $infoImagePath }
# Dynamic checkboxes for optional features in Windows Settings tab
$script:featureCheckBoxes = @{}
function UpdateOptionalFeaturesString {