mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-07 00:10:10 +00:00
* Delete microwin functions * Update main.ps1 * Remove oscdimg.exe which is used by microwin * Delete config/autounattend.xml * Update .gitignore * Update bug_report.yaml * Update themes.json * Update Invoke-WinUtilFontScaling.ps1 * Update Invoke-AutoConfigDialog.ps1 * Update Invoke-WPFButton.ps1 * Update inputXML.xaml * Delete docs/assets/images/microwin directory * Delete docs/assets/images/MicroWinScreen.png * Delete docs/assets/images/Microwin-Dark.png * Delete docs/assets/images/Microwin-Light.png * Update faq.md * Update KnownIssues.md * Update getting-started.md * Update _index.md * Delete docs/content/userguide/microwin directory * Update architecture.md --------- Co-authored-by: Chris Titus <dfm.titus@gmail.com>
21 lines
543 B
PowerShell
21 lines
543 B
PowerShell
function Invoke-AutoConfigDialog {
|
|
|
|
<#
|
|
.SYNOPSIS
|
|
Sets the automatic configuration file based on a specified JSON file
|
|
#>
|
|
|
|
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
|
|
$OFD = New-Object System.Windows.Forms.OpenFileDialog
|
|
$OFD.Filter = "JSON Files (*.json)|*.json"
|
|
$OFD.ShowDialog()
|
|
|
|
if ($OFD.FileName -eq "")
|
|
{
|
|
Write-Host "No automatic config file has been selected. Continuing without one..."
|
|
return
|
|
}
|
|
|
|
return $OFD.FileName
|
|
}
|