mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Reorder script execution list to ensure Install-Office.ps1 runs after Update-Defender.ps1 and remove unnecessary pause
This commit is contained in:
@@ -30,8 +30,8 @@ $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|||||||
|
|
||||||
# Define the list of scripts to run, order doesn't matter - if you have a custom script, add it here
|
# Define the list of scripts to run, order doesn't matter - if you have a custom script, add it here
|
||||||
$scriptList = @(
|
$scriptList = @(
|
||||||
"Install-Office.ps1",
|
|
||||||
"Update-Defender.ps1",
|
"Update-Defender.ps1",
|
||||||
|
"Install-Office.ps1",
|
||||||
"Update-MSRT.ps1",
|
"Update-MSRT.ps1",
|
||||||
"Update-OneDrive.ps1",
|
"Update-OneDrive.ps1",
|
||||||
"Update-Edge.ps1",
|
"Update-Edge.ps1",
|
||||||
@@ -48,7 +48,6 @@ foreach ($script in $scriptList) {
|
|||||||
Write-Host " Running script: $script " -ForegroundColor Yellow
|
Write-Host " Running script: $script " -ForegroundColor Yellow
|
||||||
Write-Host "---------------------------------------------------" -ForegroundColor Yellow
|
Write-Host "---------------------------------------------------" -ForegroundColor Yellow
|
||||||
# Run script and wait for it to finish
|
# Run script and wait for it to finish
|
||||||
# pause
|
|
||||||
& $scriptFile
|
& $scriptFile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user