334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
|
-
-
-
+
+
-
|
$t.found = $t.testpth
}
elseif ($t.regkey -and (Test-Path $t.regkey)) {
$t.found = "installer/registry"
}
}
if (!$t.found) {
if ((!$t.is_opt) -or ($optionalInstall)) {
Write-Host " - $($t.title) not found"
$result = 0;
Write-Host " - $($t.title) not found"
$result = 0;
}
}
else {
Write-Host -n " + $($t.title) found " # and display shortened path:
Write-Host -f DarkGray "($($t.found -replace '(?<!^.{1,4})(\\[^\\]+(?=\\)){2,5}(?!.?$)', '...'))"
}
}
if ($result) {
|