18 lines
689 B
PowerShell
18 lines
689 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
|
|
}
|
|
|
|
# Import script-helper.ps1
|
|
. "$currentDir\..\..\scripts\script-helper.ps1"
|
|
|
|
### Add provisioned packages for UI components ###
|
|
$uiPath = "$windowsDrive\Windows\OEM\apps\ui"
|
|
Write-Output "Installing UI components..."
|
|
Add-AppxProvisionedPackage -Online -PackagePath "$uiPath\TopNotify.msix" -SkipLicense
|
|
Add-AppxProvisionedPackage -Online -PackagePath "$uiPath\TranslucentTB.msixbundle" -SkipLicense |