Rename App Configurator to Custom Apps List Generator. The old parameter will continue to work.

This commit is contained in:
Raphire
2025-04-19 15:16:47 +02:00
parent 224b0d7705
commit aab4b1f455
3 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ param (
[switch]$Silent,
[switch]$Sysprep,
[string]$User,
[switch]$RunAppConfigurator,
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
[switch]$RunDefaults, [switch]$RunWin11Defaults,
[switch]$RunSavedSettings,
[switch]$RemoveApps,
@@ -1184,15 +1184,15 @@ if ((Test-Path "$PSScriptRoot/SavedSettings") -and ([String]::IsNullOrWhiteSpace
Remove-Item -Path "$PSScriptRoot/SavedSettings" -recurse
}
# Only run the app selection form if the 'RunAppConfigurator' parameter was passed to the script
if ($RunAppConfigurator) {
PrintHeader "App Configurator"
# Only run the app selection form if the 'RunAppsListGenerator' parameter was passed to the script
if ($RunAppConfigurator -or $RunAppsListGenerator) {
PrintHeader "Custom Apps List Generator"
$result = ShowAppSelectionForm
# Show different message based on whether the app selection was saved or cancelled
if ($result -ne [System.Windows.Forms.DialogResult]::OK) {
Write-Host "App configurator was closed without saving." -ForegroundColor Red
Write-Host "Application selection window was closed without saving." -ForegroundColor Red
}
else {
Write-Output "Your app selection was saved to the 'CustomAppsList' file, found at:"