Ajout d'un fond d'écran personnalisé si fourni dans DeployCenter.ini

Renommage du profil unattend pour mieux correspondre à ce qu'il fait.
Ajout d'un warning si WinRE n'est pas assez grands au regard des préconisations Microsoft et du redémarrage automatique si l'installation réussi.
This commit is contained in:
benoit committed 2026-10-17 21:28:34 +02:00
1 parent e067721763
commit cb917c97ce
11 files changed
+161 -23

No files matched your search

+10 -2
View File
@@ -715,7 +715,7 @@ $script:btnDeploy.Add_Click({
[System.Windows.Forms.Application]::DoEvents()
}.GetNewClosure()
Invoke-DeployCenterWindowsDeployment `
$deploymentResult = Invoke-DeployCenterWindowsDeployment `
-DiskInfo $diskInfo `
-Profile $script:SelectedPartitionProfile `
-SizingState $script:SelectedPartitionSizing `
@@ -730,8 +730,16 @@ $script:btnDeploy.Add_Click({
$progress.Form.Close()
$script:form.Enabled = $true
$completionMessage = 'Windows a été appliqué avec succès. Le déploiement est prêt.'
$restartByDefault = $true
if ($deploymentResult -and @($deploymentResult.WinRERecommendationWarnings).Count -gt 0) {
$winreWarnings = @($deploymentResult.WinRERecommendationWarnings) -join '; '
$completionMessage += "`r`n`r`nRappel WinRE : les recommandations Microsoft ne sont pas toutes respectées : $winreWarnings."
$restartByDefault = $false
}
$restartAfterDeployment = Show-DeployCenterDeploymentComplete `
-Message 'Windows a été appliqué avec succès. Le déploiement est prêt.' `
-Message $completionMessage `
-RestartByDefault $restartByDefault `
-Owner $script:form -Theme $script:Theme -Font $script:FontRegular
if ($restartAfterDeployment) {
$script:RestartAfterDeployment = $true