mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-03-12 17:51:46 +08:00
Win11 ISO Creator (#4110)
* Tab creation * scaffold outline for the iso tab * autounattended creation * inital modification success * iso save success * cleanup and iso improvements * fix startmenu on new 26h2 * remove old first startup * Fix run for use * fix unapproved verb * Keep step 4 output expanded * update auto-merge * Cleanup * remove out-null and trailing whitespace * explain modify and creator button * fix scroll to end * remove workflow change
This commit is contained in:
@@ -281,6 +281,7 @@ $commonKeyEvents = {
|
||||
"T" { Invoke-WPFButton "WPFTab2BT"; $keyEventArgs.Handled = $true } # Navigate to Tweaks tab
|
||||
"C" { Invoke-WPFButton "WPFTab3BT"; $keyEventArgs.Handled = $true } # Navigate to Config tab
|
||||
"U" { Invoke-WPFButton "WPFTab4BT"; $keyEventArgs.Handled = $true } # Navigate to Updates tab
|
||||
"W" { Invoke-WPFButton "WPFTab5BT"; $keyEventArgs.Handled = $true } # Navigate to Win11ISO tab
|
||||
}
|
||||
}
|
||||
# Handle Ctrl key combinations for specific actions
|
||||
@@ -531,5 +532,56 @@ $sync["FontScalingApplyButton"].Add_Click({
|
||||
Invoke-WPFPopup -Action "Hide" -Popups @("FontScaling")
|
||||
})
|
||||
|
||||
# ── Win11ISO Tab button handlers ──────────────────────────────────────────────
|
||||
|
||||
$sync["WPFWin11ISOBrowseButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOBrowseButton clicked"
|
||||
Invoke-WinUtilISOBrowse
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISODownloadLink"].Add_Click({
|
||||
Write-Debug "WPFWin11ISODownloadLink clicked"
|
||||
Start-Process "https://www.microsoft.com/software-download/windows11"
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOMountButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOMountButton clicked"
|
||||
Invoke-WinUtilISOMountAndVerify
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOModifyButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOModifyButton clicked"
|
||||
Invoke-WinUtilISOModify
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOChooseISOButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOChooseISOButton clicked"
|
||||
$sync["WPFWin11ISOOptionUSB"].Visibility = "Collapsed"
|
||||
Invoke-WinUtilISOExport
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOChooseUSBButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOChooseUSBButton clicked"
|
||||
$sync["WPFWin11ISOOptionUSB"].Visibility = "Visible"
|
||||
Invoke-WinUtilISORefreshUSBDrives
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISORefreshUSBButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISORefreshUSBButton clicked"
|
||||
Invoke-WinUtilISORefreshUSBDrives
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOWriteUSBButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOWriteUSBButton clicked"
|
||||
Invoke-WinUtilISOWriteUSB
|
||||
})
|
||||
|
||||
$sync["WPFWin11ISOCleanResetButton"].Add_Click({
|
||||
Write-Debug "WPFWin11ISOCleanResetButton clicked"
|
||||
Invoke-WinUtilISOCleanAndReset
|
||||
})
|
||||
|
||||
# ──────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
$sync["Form"].ShowDialog() | out-null
|
||||
Stop-Transcript
|
||||
|
||||
Reference in New Issue
Block a user