Getting Data In

Why am I unable to install a universal forwarder using CMD?

jsantos1
Engager

Hi,

I'm trying to install Universal Forwarder using the command below:

-> msiexec.exe /i “C:\USERS\%USERNAME%\Desktop\splunkforwarder-6.2.4-271043-x64-release.msi” DEPLOYMENT_SERVER="DSxxxx:8089" AGREETOLICENSE=Yes 

but I get the "Windows Installer" error

(This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.)

Of course I have admin rights and the installer on the right path.

Normal installation works fine by just double click, but I want to do a silent install, I just want to ensure the CLI command works.

Installing it on Windows Server/s 2k12 x64

spunk311z
Path Finder

ive found that if you remove the quotes off of:
DEPLOYMENT_SERVER="me.com:9997”

so: DEPLOYMENT_SERVER=me.com:9997

it works..... I battled with this for a few hours. my working cmd line:

msiexec.exe /i splunkuf.msi AGREETOLICENSE=Yes DEPLOYMENT_SERVER=me.com:9997 LAUNCHSPLUNK=1 /quiet

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

I use a powershell script to front-end the installation. In it I do the following (though this is not all that the powershell script does):

$MSI= splunkforwarder-7.0.2-03bbabbd5c0f-x64-release.msi
$SUFloc = "c:\Program Files\SplunkUniversalForwarder"
$ARGS = "/i $MSI AGREETOLICENSE=Yes SPLUNK_APP=SplunkLightForwarder LAUNCHSPLUNK=0 INSTALLDIR=`"${SUFloc}`" SERVICESTARTTYPE=auto /quiet"
$proc = (Start-Process -FilePath "msiexec.exe" -ArgumentList "${ARGS}" -Wait -Passthru).ExitCode

If you want to do something similar not in a powershell script, you could extrapolate the command line that would be done from that.

0 Karma

mrcusanelli
New Member

I'm having the same problem. The stadard install works just fine, but when attempting to perform a quiet install, nothing happens are i get the 1619 error. Has anyone been able to find a fix for this?

0 Karma

hankmath
Observer

Hi, i cope with the same problem. Does anyone know how to solve it ?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...