From e224e233ccb79c823f2516e06b8c52ca1d605a38 Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Mon, 2 Sep 2024 12:09:44 +1000 Subject: [PATCH] Implement Exec Path Check in ExtractPrograms.ps1 --- install/ExtractPrograms.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/ExtractPrograms.ps1 b/install/ExtractPrograms.ps1 index b1587ea..85939e8 100644 --- a/install/ExtractPrograms.ps1 +++ b/install/ExtractPrograms.ps1 @@ -192,7 +192,9 @@ function AppSearchWinReg { # Get corresponding application names for unique installed executable files. foreach ($exePath in $exePaths) { - $exeNames += GetApplicationName -exePath $exePath + if (Test-Path -Path $exePath) { + $exeNames += GetApplicationName -exePath $exePath + } } # Process extracted executable file paths.