change installation to manual

This commit is contained in:
2022-12-15 14:18:31 -05:00
parent 88b721a7f9
commit 74559046c0
+8 -10
View File
@@ -15,18 +15,16 @@ switch ( $Edition.ToLower() ) {
default { $URL = $ECB_WIN_URL; $AgentEdition = 'desktop' }
}
# Install and import additional Powershell module
Install-MSP360Module
Import-Module -Name MSP360
# Download the installer
$Installer = Download-File -URL $URL
# Install the agent
LogMsg "Installing Emberkom Cloud Backup agent"
Try {
$JobName = "MSP360AgentInstall"
Start-Job -Name $JobName -Scriptblock {
Install-MSP360Module
Import-Module -Name MSP360
Install-MBSAgent -URL $URL -Force
}
Wait-Job -Name $JobName
Remove-Job -Name $JobName -Force
}
Try { Start-Process "${Installer}" -ArgumentList "/S" -Wait }
Catch { LogErr $_.Exception.Message }
# Add backup user to installed product