17 lines
605 B
PowerShell
17 lines
605 B
PowerShell
# Check PowerShell version for use in path
|
|
if ($PSVersionTable.PSVersion.Major -ge 3) {
|
|
# Use new variable syntax in PowerShell 3 and above
|
|
$currentDir = $PSScriptRoot
|
|
}
|
|
else {
|
|
# Use old variable syntax in Windows PowerShell 3 and below
|
|
$currentDir = (Get-Item .).FullName
|
|
}
|
|
|
|
. "$currentDir\..\..\scripts\script-helper.ps1"
|
|
|
|
#### Install Apps (user) ####
|
|
$configPath = "$windowsDrive\Windows\OEM\setup\apps-user.yml"
|
|
if (Test-Path $configPath) {
|
|
Start-Process -FilePath "$windowsDrive\Windows\OEM\MultiStaller.exe" -ArgumentList "--config", "$configPath" -WindowStyle Maximized -Wait
|
|
} |