remove architecture selection

This commit is contained in:
MyDrift 2024-08-20 23:07:14 +02:00
parent fcd339d54d
commit f63c312f22
3 changed files with 1 additions and 11 deletions

View File

@ -84,12 +84,9 @@ function Invoke-WPFGetIso {
Invoke-WebRequest "https://github.com/pbatard/Fido/raw/master/Fido.ps1" -OutFile $fidopath
$selectedItem = ($sync["ISOArchitecture"].SelectedItem -split '-')[0]
$rel = "x" + $selectedItem
# TODO: Have to correct the language to actually be a working one
Set-Location -Path $env:temp
& $fidopath -Win 'Windows 11' -Rel $sync["ISORelease"].SelectedItem -Arch $rel
& $fidopath -Win 'Windows 11' -Rel $sync["ISORelease"].SelectedItem -Arch "x64"
Set-Location $originalLocation
$filePath = Get-ChildItem -Path "$env:temp" -Filter "Win11*.iso" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
}

View File

@ -369,18 +369,12 @@ if ($locale -ne "en-US") {
}
$sync["ISOLanguage"].SelectedItem = $locale
$sync["ISOArchitecture"].Items.Add("64-bit")
$sync["ISOArchitecture"].Items.Add("86-bit")
$sync["ISOArchitecture"].SelectedItem = (Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture
if ($sync["ISOoption1"].IsChecked) {
$sync["ISORelease"].Visibility = [System.Windows.Visibility]::Visible
$sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Visible
$sync["ISOArchitecture"].Visibility = [System.Windows.Visibility]::Visible
} else {
$sync["ISORelease"].Visibility = [System.Windows.Visibility]::Collapsed
$sync["ISOLanguage"].Visibility = [System.Windows.Visibility]::Collapsed
$sync["ISOArchitecture"].Visibility = [System.Windows.Visibility]::Collapsed
}
# Load Checkboxes and Labels outside of the Filter function only once on startup for performance reasons

View File

@ -969,7 +969,6 @@
<RadioButton x:Name="ISOoption1" Content="Get newest ISO automatically" GroupName="Options" IsChecked="True"/>
<ComboBox x:Name="ISORelease"/>
<ComboBox x:Name="ISOLanguage"/>
<ComboBox x:Name="ISOArchitecture"/>
<RadioButton x:Name="ISOoption2" Content="Select your own ISO" GroupName="Options"/>
<Button Name="WPFGetIso" Margin="2" Padding="15">
<Button.Content>