We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fddac5b + 317ef6b commit 6c39035Copy full SHA for 6c39035
UnitySetup/UnitySetup.psm1
@@ -259,7 +259,7 @@ function Find-UnitySetupInstaller
259
else {
260
$knownBaseUrls = $knownBaseUrls | Sort-Object -Property @{ Expression={[math]::Abs(($_.CompareTo($linkComponents[0])))}; Ascending=$true}
261
}
262
-
+
263
$installerTemplates.Keys |
264
Where-Object { $Components -band $_ } |
265
ForEach-Object {
@@ -285,12 +285,17 @@ function Find-UnitySetupInstaller
285
286
287
288
- if( $result ) {
289
- $result
290
- break
291
- }
+ if( $result ) { break }
+ }
+ if( -not $result )
292
+ {
293
+ Write-Warning "Unable to find installer for the $_ component."
294
295
+ else { $result }
296
297
} | Sort-Object -Property ComponentType
298
299
300
301
<#
0 commit comments