Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
SynthosKralupy
Enthusiast
Posts: 27
Liked: 2 times
Joined: Jan 06, 2012 10:16 am
Full Name: Synthos Kralupy
Contact:

Unattended installation never ends

Post by SynthosKralupy »

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.
Dima P.
Product Manager
Posts: 14396
Liked: 1568 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Unattended installation never ends

Post by Dima P. »

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" 
SynthosKralupy
Enthusiast
Posts: 27
Liked: 2 times
Joined: Jan 06, 2012 10:16 am
Full Name: Synthos Kralupy
Contact:

Re: Unattended installation never ends

Post by SynthosKralupy »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests