Extra Line removed (logs)
parent
737d049e6f
commit
46f15becd8
|
@ -538,8 +538,14 @@ Write-Host "`t________________________________________________________`n `n "
|
||||||
if (!$Uninstall) {
|
if (!$Uninstall) {
|
||||||
Write-ToLog "Installing WAU to $WAUinstallPath\"
|
Write-ToLog "Installing WAU to $WAUinstallPath\"
|
||||||
Install-Prerequisites
|
Install-Prerequisites
|
||||||
Update-Winget
|
$UpdateWinget = Update-Winget
|
||||||
|
if ($UpdateWinget -ne "fail") {
|
||||||
|
Write-Host "`r" #Extra Line in console only
|
||||||
Install-WingetAutoUpdate
|
Install-WingetAutoUpdate
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-ToLog "Winget is mandatory to execute WAU." "Red"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-ToLog "Uninstalling WAU..."
|
Write-ToLog "Uninstalling WAU..."
|
||||||
|
|
|
@ -68,12 +68,12 @@ Function Update-WinGet {
|
||||||
#If multiple versions, pick most recent one
|
#If multiple versions, pick most recent one
|
||||||
$WingetCmd = $WingetInfo[-1].FileName
|
$WingetCmd = $WingetInfo[-1].FileName
|
||||||
& $WingetCmd source reset --force
|
& $WingetCmd source reset --force
|
||||||
Write-ToLog "-> WinGet sources reset.`n" "green"
|
Write-ToLog "-> WinGet sources reset." "green"
|
||||||
$return = "success"
|
$return = "success"
|
||||||
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-ToLog "-> Failed to install WinGet MSIXBundle for App Installer...`n" "red"
|
Write-ToLog "-> Failed to install WinGet MSIXBundle for App Installer..." "red"
|
||||||
#Force Store Apps to update
|
#Force Store Apps to update
|
||||||
Update-StoreApps
|
Update-StoreApps
|
||||||
$return = "fail"
|
$return = "fail"
|
||||||
|
@ -86,7 +86,7 @@ Function Update-WinGet {
|
||||||
return $return
|
return $return
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-ToLog "-> WinGet is up to date: v$WinGetInstalledVersion`n" "Green"
|
Write-ToLog "-> WinGet is up to date: v$WinGetInstalledVersion" "Green"
|
||||||
return "current"
|
return "current"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue