Page 1 of 1

NCPA Agent Windows Installation to Different Drive

Posted: Mon Aug 10, 2015 10:39 am
by mp4783
We would like to install the NCPA agent for Windows on the "D:" drive of our Windows servers.

Does anyone know if this is possible? The ".exe" installer command line options do not appear to support any change in the installation location.

Thanks.

Re: NCPA Agent Windows Installation to Different Drive

Posted: Mon Aug 10, 2015 11:23 am
by ssax
Should be able to pass it in with the /D switch:

Code: Select all

ncpa-1.8.1.exe /S /D=D:\Program Files (x86)\Nagios\NCPA

Re: NCPA Agent Windows Installation to Different Drive

Posted: Wed Aug 12, 2015 7:25 am
by mp4783
Thank you for the suggestion. It did not work. It still installed it on the C: drive.

Any other ideas?

Re: NCPA Agent Windows Installation to Different Drive

Posted: Wed Aug 12, 2015 11:10 am
by lmiltchev
I don't see an option for specifying a custom drive (install directory) in the "Installing NCPA on Windows" document ("Silent Install" section):

https://assets.nagios.com/downloads/ncp ... on-windows

We will check this out with our developers and get back to you.

Re: NCPA Agent Windows Installation to Different Drive

Posted: Thu Aug 13, 2015 1:20 pm
by mp4783
I finally broke open the exe file and figured out the install "logic" was kept in [NSIS].nsi file. It appears the author is using the NSIS packager. Based upon an admittedly superficial reading of the ini file, it appears the install directory is controlled by the $PROGRAMFILES constant in NSIS.

After reading some of the NSIS documentation and trying several things, the following command line works (option values are obviously fake):

ncpa-1.8.1.exe /S /TOKEN=apiToken /NRDPURL=https://nrdphost.mycompany.com/nrdp /HOST=monitoredhost.mycompany.com /NRDPTOKEN=nrdpToke /D=D:\Program Files (x86)\Nagios\NCPA

The secret is that the "/D=" must go at the end of the command line. The NSIS script sort of suggests this.

I strongly urge you to ask the developer (Scott, you know who you are) to consider updating the documentation.

You may lock this thread.

Re: NCPA Agent Windows Installation to Different Drive

Posted: Thu Aug 13, 2015 1:24 pm
by hsmith
mp4783 wrote:I finally broke open the exe file and figured out the install "logic" was kept in [NSIS].nsi file. It appears the author is using the NSIS packager. Based upon an admittedly superficial reading of the ini file, it appears the install directory is controlled by the $PROGRAMFILES constant in NSIS.

After reading some of the NSIS documentation and trying several things, the following command line works (option values are obviously fake):

ncpa-1.8.1.exe /S /TOKEN=apiToken /NRDPURL=https://nrdphost.mycompany.com/nrdp /HOST=monitoredhost.mycompany.com /NRDPTOKEN=nrdpToke /D=D:\Program Files (x86)\Nagios\NCPA

The secret is that the "/D=" must go at the end of the command line. The NSIS script sort of suggests this.

I strongly urge you to ask the developer (Scott, you know who you are) to consider updating the documentation.

You may lock this thread.
Thank you for your feedback.
I'll take note of this thread!