Fixes
This commit is contained in:
@@ -51,7 +51,14 @@ function Setup {
|
||||
ChocoInstallApps -Type $Type
|
||||
InstallApps -Type $Type
|
||||
UpdateWindows
|
||||
Show-WDACMenu
|
||||
Write-Host "Installation complete!"
|
||||
Write-Host "Would you like to restart now? (y/n)"
|
||||
$input = Read-Host
|
||||
if ($input -eq "y") {
|
||||
Clear-RecycleBin
|
||||
Restart-Computer -Force
|
||||
}
|
||||
}
|
||||
|
||||
function Custom {
|
||||
@@ -138,6 +145,13 @@ function SetupCustom {
|
||||
if ($Update) {
|
||||
UpdateWindows
|
||||
}
|
||||
Show-WDACMenu
|
||||
Write-Host "Would you like to restart now? (y/n)"
|
||||
$input = Read-Host
|
||||
if ($input -eq "y") {
|
||||
Clear-RecycleBin
|
||||
Restart-Computer -Force
|
||||
}
|
||||
}
|
||||
|
||||
function Show-InstallationMenu {
|
||||
@@ -167,12 +181,4 @@ function Show-InstallationMenu {
|
||||
} while ($selection -ne "1" -and $selection -ne "2" -and $selection -ne "3")
|
||||
}
|
||||
|
||||
Show-InstallationMenu
|
||||
Show-WDACMenu
|
||||
|
||||
Write-Host "Would you like to restart now? (y/n)"
|
||||
$input = Read-Host
|
||||
if ($input -eq "y") {
|
||||
Clear-RecycleBin
|
||||
Restart-Computer -Force
|
||||
}
|
||||
Show-InstallationMenu
|
||||
Reference in New Issue
Block a user