Skip to content

Commit c3a7e79

Browse files
Merge pull request #292 from BlauToad/patch-1
Changed the Teamviewer Script to include all path keys and not just the last one wich worked.
2 parents 8506c83 + 1a7ccfe commit c3a7e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Win_Teamviewer_Get_ID.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $Paths = @(foreach ($TeamViewerVersionsNum in $TeamViewerVersionsNums) {
1010

1111
foreach ($Path in $Paths) {
1212
If (Test-Path $Path) {
13-
$GoodPath = $Path
13+
$GoodPath += $Path
1414
}
1515
}
1616

@@ -24,4 +24,4 @@ foreach ($FullPath in $GoodPath) {
2424

2525

2626
}
27-
Write-Output $TeamViewerID
27+
Write-Output $TeamViewerID

0 commit comments

Comments
 (0)