Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated installation #377

Closed
dgoeger opened this issue Feb 7, 2017 · 7 comments
Closed

Automated installation #377

dgoeger opened this issue Feb 7, 2017 · 7 comments
Milestone

Comments

@dgoeger
Copy link

dgoeger commented Feb 7, 2017

Hello,

i want to install the NSCP-Client automated.
Thats my command:

msiexec /qn /norestart /l* log.txt /i NSCP-0.5.0.62-x64.msi CONFIGURATION_TYPE=registry://HKEY_LOCAL_MACHINE/software/NSClient++ ADDDEFAULT=ALL REMOVE=PythonScript CONF_WEB=1 NSCLIENT_PWD="xxxxx" NRPEMODE=LEGACY ALLOWED_HOSTS="127.0.0.1,::1,xxx.xxx.xxx.xxx/16"

but the installation ignores the options.
Only Allowed_HOSTS optione done.

Can sombody help me with this Problem?

@mickem
Copy link
Owner

mickem commented Feb 7, 2017

For 0.5.0 you need to set CONF_CAN_WRITE=1 and MONITORING_TOOL=none

@dgoeger
Copy link
Author

dgoeger commented Feb 7, 2017

Trank you i will try it.
Is there a part in the documentation sheet?

@dgoeger
Copy link
Author

dgoeger commented Feb 7, 2017

Second Problem nothing is written to registry.

@mickem
Copy link
Owner

mickem commented Feb 8, 2017

It should be mentione din the 0.5.0 version documentation http://docs.nsclient.org/0.5.0/ (which seems broken, so I guess I need to fix that as well, but you should have the same in the installed version though)

Can you give me the exact command you have "now" i.e. the on you used when registry was not working and I will lok into it...

// Michael Medin

@anthony-poon
Copy link

I installed via GPO startup script in system user context. The msi is located in a share drive. The command I use is

msiexec /l* "C:\nscp_install.log" /qn /i "\AMLAD\netlogon\msi\NSCP-0.5.0.62-x64.msi" INSTALLLOCATION="C:\Program Files\NSClient++" CONFIGURATION_TYPE="ini://\AMLAD\netlogon\nscp_config.ini" ADDDEFAULT=ALL REMOVE=PythonScript CONF_CAN_CHANGE=1 MONITORING_TOOL=none

If I put "CONF_CAN_CHANGE=1 MONITORING_TOOL=none" at the end, the installation destination will have nothing but a single "boot.ini" file.

If I remove either option or both, the config will be ${share-path}/nsclient.ini

By the way, what is the share-path variable? is it the environmental variable?

@mickem
Copy link
Owner

mickem commented Jul 28, 2017

share-path is a hardcoded variable and currently the path of the exe file (https://github.com/mickem/nscp/blob/master/docs/docs/settings.md#paths )
I have fixed numerous bugs related to silent installeras so please try 0.5.1.35 first and see if that works better...

@mickem
Copy link
Owner

mickem commented Feb 3, 2018

Please reopen this if you still have issues with 0.5.2

@mickem mickem closed this as completed Feb 3, 2018
@mickem mickem added this to the 0.5.2 milestone Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants