We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 824979a + aae37fa commit d87a5ccCopy full SHA for d87a5cc
AppHandling/Sort-AppFilesByDependencies.ps1
@@ -146,7 +146,10 @@ try {
146
$appName = [System.IO.Path]::GetFileName($files["$($_.id):$($_.version)"])
147
$app = $_
148
$installedApp = $excludeInstalledApps | Where-Object { $_.id -eq $app.id }
149
- if ([System.Version]$app.Version -eq $installedApp.Version ) {
+ if (!$installedApp) {
150
+ $app
151
+ }
152
+ elseif ([System.Version]$app.Version -eq $installedApp.Version ) {
153
Write-Host "$appName is already installed with the same version"
154
}
155
elseif ([System.Version]$app.Version -lt $installedApp.Version ) {
0 commit comments