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 }