Fixes
This commit is contained in:
@@ -51,7 +51,14 @@ function Setup {
|
|||||||
ChocoInstallApps -Type $Type
|
ChocoInstallApps -Type $Type
|
||||||
InstallApps -Type $Type
|
InstallApps -Type $Type
|
||||||
UpdateWindows
|
UpdateWindows
|
||||||
|
Show-WDACMenu
|
||||||
Write-Host "Installation complete!"
|
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 {
|
function Custom {
|
||||||
@@ -138,6 +145,13 @@ function SetupCustom {
|
|||||||
if ($Update) {
|
if ($Update) {
|
||||||
UpdateWindows
|
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 {
|
function Show-InstallationMenu {
|
||||||
@@ -167,12 +181,4 @@ function Show-InstallationMenu {
|
|||||||
} while ($selection -ne "1" -and $selection -ne "2" -and $selection -ne "3")
|
} while ($selection -ne "1" -and $selection -ne "2" -and $selection -ne "3")
|
||||||
}
|
}
|
||||||
|
|
||||||
Show-InstallationMenu
|
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
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user