Support old windows versions

Added a test to not error out when the Appx cmdlets are not available (like in
the windows 7 box i am using). I had some install issues with creating the
bin links so I added "-f".
This commit is contained in:
Adam
2024-09-08 23:19:32 -04:00
parent 7bae17e3a3
commit e6d04bf8e0
2 changed files with 5 additions and 3 deletions

View File

@@ -329,6 +329,8 @@ Write-Output 'ICONS=()'
# Search for installed applications.
AppSearchWinReg # Windows Registry
AppSearchUWP # Universal Windows Platform
if (Get-Command Get-AppxPackage -ErrorAction SilentlyContinue){
AppSearchUWP # Universal Windows Platform
}
AppSearchChocolatey # Chocolatey Package Manager
AppSearchScoop # Scoop Package Manager