viscosity silent install

Got a problem with Viscosity or need help? Ask here!

atoshevs

Posts: 3
Joined: Mon Feb 10, 2014 8:32 pm

Post by atoshevs » Mon Feb 10, 2014 8:51 pm
Hi,
I am installing Viscosity 1.4.7 with SCCM and powershell script
------------------------------------------------------------------------------------------------------------------------------
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
certutil -addstore "TrustedPublisher" $scriptPath\sparklabs.cer

$exeFile = "$scriptPath\Viscosity_Installer_1.4.7.exe"
#Install Viscosity
Start-Process $exeFile -ArgumentList "/sp-", "/verysilent", "/NORUN", "/NOCANCEL", "/NORESTART", "/NOCLOSEAPPLICATIONS", "/NORESTARTAPPLICATIONS" -Verb RunAs -Wait
$inst_dir = "${Env:ProgramFiles}\Viscosity"
#Copy settings file
Copy-Item -Path $scriptPath\Settings.xml -Destination $inst_dir\GlobalSettings.xml -Force
-----------------------------------------------------------------------------------------------------------------------------
Installation goes thru fine but, i get the error "Background Service Not Running" (see image in attachment), the virtual adapter is/can`t be created, as i can see.
I don`t have that problem when installing manually, and with silent install of previous versions.

Regards
Attachments
viscosity_1.4.7.png
viscosity_1.4.7.png (77.58 KiB) Viewed 8841 times

atoshevs

Posts: 3
Joined: Mon Feb 10, 2014 8:32 pm

Post by atoshevs » Mon Feb 10, 2014 10:45 pm
i now see that Viscosity Service is gone from Services.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Mon Feb 10, 2014 11:42 pm
Hi astoshevs,

We've seen this once before with SCCM but I'm afraid we never got to the bottom of it as the problem doesn't occur with GPO deployments and we know of other SCCM users that haven't had any issues. Viscosity runs a shell to install and install the service during the installer, our only theory is SCCM blocks this shell access somehow.

Fortunately, it's quite simple to add a couple of tasks to your script in order to install and start the service after the Viscosity installer is finished. Viscosity will take care of the rest of the setup the first time it starts, you just need to run the following two commands:
Code: Select all
sc create ViscosityService binPath= "C:\Program Files\Viscosity\ViscosityService.exe start= auto DisplayName= "Viscosity Service"
sc start ViscosityService
Let us know if you have any issues.

Regards,

Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

atoshevs

Posts: 3
Joined: Mon Feb 10, 2014 8:32 pm

Post by atoshevs » Tue Feb 11, 2014 3:28 am
Hi Eric,

That worked, thanks a lot.
It is very strange, because SCCM uses NT Authority user which is local admin, for installing on the machine.

Regards
4 posts Page 1 of 1