Page 1 of 1

NCPA Silent Install

Posted: Wed Sep 27, 2017 3:58 pm
by onegative
G 'Day Customer Support,

Does anyone know whether there is a Silent installation directive to specify a different drive on Windows?

I would really like the ability to specify our standard application drive which is not C:\

Or whether I could simply create a zipped directory of the installation...execute whatever commands to add the services, fw rules and yada, yada, yada...

Looking for info/suggestions on the subject.

Let me know and thanks,
Danny

Re: NCPA Silent Install

Posted: Wed Sep 27, 2017 4:22 pm
by tacolover101
i can't find any reference out of the box, but it should be possible with it being opensource. https://github.com/NagiosEnterprises/ncpa

if not currently possible, i imagine there is a %basedir% type variable lurking somewhere that would then allow you to set it to whatever data drive you'd like.

Re: NCPA Silent Install

Posted: Thu Sep 28, 2017 9:18 am
by onegative
Well I tried setting %ProgramFiles(x86)% from the batch file used to initiate the silent install but it still installed under the C:\ProgramFiles(x86) directory.

I took a gander at the build files on github but I am not completely sure I understand where to try and modify the installation basedir.

Plus I do not have a development environment to compile on Windows so I am really unsure how to proceed but I really wish there was a way to pass /BASEDIR directive from the silent install for the installation path...frustrating that an install path variable wasn't included for the silent installation...

If anyone else has a suggestion I am all ears...

Thanks,
Danny

Re: NCPA Silent Install

Posted: Thu Sep 28, 2017 11:18 am
by lmiltchev
Danny, currently there is no way to pass a custom location via the NCPA silent installer. However, we are going to try find a workaround (if available). We will do some testing and digging into this, and will get back to you if we find a possible solution/workaround.

Re: NCPA Silent Install

Posted: Thu Sep 28, 2017 1:44 pm
by onegative
Thanks for stepping up...not being able to automate installations to preferred logical drives really hamstrings large organizations especially when C: is off limits to teams other than the system administrators.

Many thanks,
Danny

Re: NCPA Silent Install

Posted: Thu Sep 28, 2017 2:07 pm
by lmiltchev
Danny, try running:

Code: Select all

ncpa-2.0.5.exe /S /TOKEN='token' /D=X:\folder
where "X:\folder" is the path to the installation folder. Place the "/D=xxx" last and don't wrap the path in quotes.

Let us know if this worked for you.

Re: NCPA Silent Install

Posted: Thu Sep 28, 2017 2:45 pm
by onegative
OUTSTANDING!!!!!!!!!!!!!!!!!!

That worked and exactly how I specified the path.

Did Jake provide that piece of information? It definitely needs to be added to the https://www.nagios.org/ncpa/getting-sta ... nt-install section.

Thank you so much for investigating this...it really simplifies my deployments.

Danny

Re: NCPA Silent Install

Posted: Fri Sep 29, 2017 9:00 am
by lmiltchev
This is great! I am glad we were able to help!

Yes, Jake provided this piece of information. He asked me to test it. Initially, it didn't work for me, probably because I was wrapping the path in double quotes or/and not placing the "/D" parameter last. Then I saw this:
/D sets the default installation directory. It must be the last parameter and must not contain any quotes. Only absolute paths are supported.
https://en.wikipedia.org/wiki/Nullsoft_ ... all_System
modified my command, and were able to successfully install NCPA on my D drive. :)

Let us know if it is OK to close this topic, and mark it as "resolved". Thank you!

Re: NCPA Silent Install

Posted: Fri Oct 06, 2017 3:16 pm
by onegative
This request can be closed/locked...and thanks...Danny