direct link to the MSI package instead of generating it on-the-fly

** this will need to be updated because it will fail as new versions are published
This commit is contained in:
2021-02-03 12:24:24 -05:00
parent 77f66def6f
commit 663b7d54e1
+4 -2
View File
@@ -18,10 +18,12 @@ If ( Test-Path "${Env:ProgramFiles}\ATERA Networks\AteraAgent\AteraAgent.exe" )
If ( $FORCE ) { $INSTALL = $true }
If ( $INSTALL ) {
## Download agent and get path
$AGENT_INSTALLER = Download-File -URL "http://emberkom.servicedesk.atera.com/GetAgent/Msi/?customerId=${CUSTOMER_ID}&integratorLogin=${INTEGRATOR_ID}" -File $AGENT_INSTALLER
#$AGENT_INSTALLER = Download-File -URL "http://emberkom.servicedesk.atera.com/GetAgent/Msi/?customerId=${CUSTOMER_ID}&integratorLogin=${INTEGRATOR_ID}" -File $AGENT_INSTALLER
$AGENT_INSTALLER = Download-File -URL 'https://packagesstore.blob.core.windows.net/installers/Fabric/MSI/1.8.0.4/Setup.msi' -FILE $AGENT_INSTALLER
## Install the agent
Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart" -Wait }
#Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart" -Wait }
Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart INTEGRATORLOGIN=${INTEGRATOR_ID}" -Wait }
Catch { LogErr $_.Exception.Message }
## Remove agent installer