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. # Search for installed applications.
AppSearchWinReg # Windows Registry AppSearchWinReg # Windows Registry
if (Get-Command Get-AppxPackage -ErrorAction SilentlyContinue){
AppSearchUWP # Universal Windows Platform AppSearchUWP # Universal Windows Platform
}
AppSearchChocolatey # Chocolatey Package Manager AppSearchChocolatey # Chocolatey Package Manager
AppSearchScoop # Scoop Package Manager AppSearchScoop # Scoop Package Manager

View File

@ -1621,8 +1621,8 @@ function waInstall() {
waFindInstalled waFindInstalled
# Install the WinApps bash scripts. # Install the WinApps bash scripts.
$SUDO ln -s "./bin/winapps" "${BIN_PATH}/winapps" $SUDO ln -sf "${SOURCE_PATH}/bin/winapps" "${BIN_PATH}/winapps"
$SUDO ln -s "./setup.sh" "${BIN_PATH}/winapps-setup" $SUDO ln -sf "${SOURCE_PATH}/setup.sh" "${BIN_PATH}/winapps-setup"
# Configure the Windows RDP session application launcher. # Configure the Windows RDP session application launcher.
waConfigureWindows waConfigureWindows