Reworked Office setup

This commit is contained in:
2023-11-06 09:39:45 +01:00
parent 50cdda2a3d
commit f8c11d5f03
3 changed files with 36 additions and 3 deletions

View File

@@ -119,11 +119,32 @@ function SetupCustom {
)
Write-Host "Performing Custom Installation..."
if ($DownloadFiles) {
DownloadFiles -Files $DownloadFiles
DownloadFiles -Type "Custom" -Files $DownloadFiles
}
if ($Office) {
CheckOfficeInstall
}
if ($Users) {
SetupUsers
if ($EleveReg) {
SetupEleveReg -username "Eleve"
}
}
if ($RDP) {
EnableRDP
}
if ($Choco) {
InstallChoco
if ($ChocoApps) {
ChocoInstallApps -Type "Custom" -Apps $ChocoApps
}
}
if ($Apps) {
InstallApps -Type "Custom" -Apps $Apps
}
if ($Update) {
UpdateWindows
}
}
function Show-InstallationMenu {