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:
@@ -18,10 +18,12 @@ If ( Test-Path "${Env:ProgramFiles}\ATERA Networks\AteraAgent\AteraAgent.exe" )
|
|||||||
If ( $FORCE ) { $INSTALL = $true }
|
If ( $FORCE ) { $INSTALL = $true }
|
||||||
If ( $INSTALL ) {
|
If ( $INSTALL ) {
|
||||||
## Download agent and get path
|
## 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
|
## 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 }
|
Catch { LogErr $_.Exception.Message }
|
||||||
|
|
||||||
## Remove agent installer
|
## Remove agent installer
|
||||||
|
|||||||
Reference in New Issue
Block a user