From 20fb02e026b4ad70ecbc9b91065c87ea45828b91 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Tue, 22 Aug 2023 11:40:27 -0400 Subject: [PATCH] make sure the agent can be started after install --- Install-LiquidFilesOutlookAgent.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Install-LiquidFilesOutlookAgent.ps1 b/Install-LiquidFilesOutlookAgent.ps1 index 93839d4..913d5d1 100644 --- a/Install-LiquidFilesOutlookAgent.ps1 +++ b/Install-LiquidFilesOutlookAgent.ps1 @@ -44,6 +44,11 @@ Try { Catch { LogErr $_.Exception.Message } # Start the agent +If ( Test-Path $PathToAgentExe64 ) { + $PathToAgentExe = $PathToAgentExe64 +} ElseIf ( Test-Path $PathToAgentExe32 ) { + $PathToAgentExe = $PathToAgentExe32 +} If ($PathToAgentExe) { LogMsg "Starting LiquidFiles agent" Try { Start-Process $PathToAgentExe }