From baa6f76e1a1b01041538712dde5870570907532d Mon Sep 17 00:00:00 2001 From: ek-dyoder Date: Wed, 8 Oct 2025 11:40:21 -0400 Subject: [PATCH] clean exit on successful install --- Install-SyncroAgent.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Install-SyncroAgent.ps1 b/Install-SyncroAgent.ps1 index 1078696..64321c7 100644 --- a/Install-SyncroAgent.ps1 +++ b/Install-SyncroAgent.ps1 @@ -1,3 +1,6 @@ +# This script is intended to be called from a Windows Provisioning Package. +# The provisioning package invokes this script the following way: +# powershell.exe -ExecutionPolicy Bypass -Command ". $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Install-SyncroAgent.ps1'))) ; Install-SyncroAgent -URL 'https://install.syncromsp.com/agent.msi'" Function Install-SyncroAgent ([string]$URL) { @@ -24,4 +27,5 @@ Function Install-SyncroAgent ([string]$URL) { Write-Error "The Syncro Agent installer was successfully downloaded but could not be found at ""${Installer}""" Exit 1 } + Exit 0 }