You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Info"Failed to install $packageName, will try safe mode after completion..."-UseError
145
-
$failedPackages+=$package
146
-
} elseif (!$?-and$safeModeWithList) {
147
-
# } elseif ($safeModeWithList) {
148
-
Write-Info"Failed to install $packageName, will try in WinRE..."-UseError
144
+
if (!$?) {
149
145
$failedPackages+=$package
146
+
if (!$safeModeWithList) {
147
+
Write-Info"Failed to install $packageName, will try safe mode after completion..."-UseError
148
+
} else {
149
+
Write-Info"Failed to install $packageName, will try in WinRE..."-UseError
150
+
}
150
151
} else {
151
152
Write-Info"Installed $packageName..."
152
153
}
@@ -172,7 +173,7 @@ if ($failedPackages.Count -ne 0) {
172
173
'Force'=$true
173
174
}
174
175
$arguments="/c title Finalizing installation - Atlas & echo Do not close this window. & echo Atlas is setting up component removal in Windows Recovery... & echo Your computer will automatically restart. & echo] & schtasks /delete /tn `"$safeModeStartupTitle`" /f > nul & "`
0 commit comments