Add archived Siemens software
This commit is contained in:
@@ -38,6 +38,9 @@ function Get-CandidateScore {
|
||||
if ($stem -eq $slugName) {
|
||||
$score += 100
|
||||
}
|
||||
if ($ProgramSlug -eq "qpst" -and $File.BaseName -eq "QPSTConfig") {
|
||||
$score += 200
|
||||
}
|
||||
foreach ($token in ($ProgramSlug -split '[-_]')) {
|
||||
if ($token.Length -ge 3 -and $stem.Contains((Get-NormalizedName $token))) {
|
||||
$score += 15
|
||||
@@ -138,7 +141,15 @@ try {
|
||||
exit 1
|
||||
}
|
||||
$winapp = "C:\codex\winapp\winapp.exe"
|
||||
$screenshotTool = if (Test-Path -LiteralPath $winapp) {
|
||||
$builtInCapturePrograms = @("u10-u15-update-software")
|
||||
$printWindowCapturePrograms = @("jadmaker")
|
||||
$screenshotTool = if ($builtInCapturePrograms -contains $Slug) {
|
||||
""
|
||||
}
|
||||
elseif ($printWindowCapturePrograms -contains $Slug) {
|
||||
"printwindow"
|
||||
}
|
||||
elseif (Test-Path -LiteralPath $winapp) {
|
||||
$winapp
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user