Unattended installation never ends

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Unattended installation never ends

Veeam Logoby SynthosKralupy » Mon Jul 10, 2017 9:07 am

Hello,

I am trying to deploy VAM thru powershell script, I found out that unattended installation never ends. I think it is waiting on some dialog which is not visible of course.
My command is :

Code: Select all
$p1 = Start-Process -FilePath "VeeamAgentWindows_2.0.0.700.exe"  -ArgumentList "/silent /accepteula" -PassThru -Wait


This task never ends. However taskbar icon is shown and Veeam service is created and started.
When I run install without arguments, I finish with "Insert backup target now" dialog. Is is bug or Am I doing something wrong?

Thanks.

Pavel.
SynthosKralupy
Influencer
 
Posts: 22
Liked: 2 times
Joined: Fri Jan 06, 2012 10:16 am
Full Name: Synthos Kralupy

Re: Unattended installation never ends

Veeam Logoby Dima P. » Tue Jul 11, 2017 6:52 pm

Hi Pavel,

For testing purposes try to run a pure setup without -PassThru -Wait switches.

Code: Select all
$p1 = Start-Process -FilePath "VeeamAgentWindows_2.0.0.700.exe"  -ArgumentList "/silent /accepteula"
Dima P.
Veeam Software
 
Posts: 6497
Liked: 454 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Unattended installation never ends

Veeam Logoby SynthosKralupy » Wed Jul 12, 2017 7:28 am

Thanks Dima for response. However I need to somehow pause script before proceeding because I am setting license and importing backup configuration in next steps.

I did small workaround for this:

Code: Select all
$complete = $false
Start-Process -FilePath "VeeamAgentWindows_2.0.0.700.exe"  -ArgumentList "/silent /accepteula"
do {
    $svc = Get-Service -Name VeeamEndpointBackupSvc -ErrorAction SilentlyContinue
    if ($svc) {$complete = $svc.Status -eq "Running"}
    Start-Sleep -Seconds 5
} until ($complete)


Unfortunatelly even with workaround I can't get exit code from installation. This is possible with -PassThru switch only.

Pavel.
SynthosKralupy
Influencer
 
Posts: 22
Liked: 2 times
Joined: Fri Jan 06, 2012 10:16 am
Full Name: Synthos Kralupy


Return to Veeam Agent for Windows



Who is online

Users browsing this forum: Bing [Bot] and 10 guests