Command line installation


#1

Hi all, I’m trying to install nsclient++ 0.5.0.62 on Windows 10 x64 thorugh msiexec

I have tried this command:

msiexec /l* c:\log.txt /i “d:\NSCP-0.4.4.23-x64.msi” INSTALLLOCATION=“c:\test” ALLOWED_HOSTS=127.0.0.1 NSCLIENT_PWD=passwordexample123 ADDLOCAL=Plugins,MainProgram,FirewallConfig,ProductFeature,CheckPlugins,NRPEPlugins,NSCPlugins,NSCAPlugin,ExtraClientPlugin,SampleScripts,SampleConfig,WEBPlugins /passive

It works, but completly ignores NSCLIENT_PWD value

Also I can’t set CONFIGURATION_TYPE value in Windows registry. It doesn’t create any keys

I have tried to add MONITORING_TOOL=none , as suggested here but it’s not working

I have the same problem on Window Server 2012 R2 and with nsclient++ 0.4.4.23 version

What am I doing wrong?

Thanks in advance, Jack


#2

You need two keys in 0.5.0:

1, MONITORING_TOOL=none (or the default will overwrite your keys) 2, CONF_CAN_WRITE (or the config will not be writable)

Both of these are no longer required in 0.5.1


#3

Hi Micke, thank you for answer

I have tried both keys but it doesn’t worked

msiexec /i “d:\NSCP-0.5.0.62-x64.msi” CONF_CAN_WRITE=1 NSCLIENT_PWD=passwordexample123 ALLOWED_HOSTS=127.0.0.1 MONITORING_TOOL=none /quiet

With MONITORING_TOOL=none, the nsclient.ini file is empty; the same thing with CONF_CAN_WRITE=1