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

Install_options not working on newer versions of nsclient. #32

Closed
vitved opened this issue Feb 20, 2017 · 2 comments
Closed

Install_options not working on newer versions of nsclient. #32

vitved opened this issue Feb 20, 2017 · 2 comments

Comments

@vitved
Copy link

vitved commented Feb 20, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:Server: 2.6.0 , Client 4.8.1
  • Ruby: 2.1.9p490
  • Distribution: Windows Server 2012 R2
  • Module version: 1.4.0

How to reproduce (e.g Puppet code you use)

Called:
class { 'nsclient':
package_source_location => 'https://github.com/mickem/nscp/releases/download/0.5.0.62',
package_name => 'NSClient++ (x64)',
package_source => 'NSCP-0.5.0.62-x64.msi',
}

What are you seeing

Install fails as the Custom Properties applied to the install are failing. The package can't be installed with either of the properties INSTALLLOCATION or CONFIGURATION_TYPE. Also fails manually.

What behaviour did you expect instead

Silent install. I get a popup from msiexec.

Any additional information you'd like to impart

Tried version 4.3, 5.0 and 5.1 of nsclient. Neither of them worked.
It seems dangerous to assume the package contains the mentioned custom properties. I'll look into a PR to make them optional.

@derektamsen
Copy link
Contributor

For reference this is the debug of the full command puppet is running:

Debug: Executing: 'msiexec.exe /qn /norestart /i c:\temp\NSCP-0.5.0.62-x64.msi "INSTALLLOCATION=C:\Program Files\NSClient++" "CONFIGURATION_TYPE=ini://C:\Program Files\NSClient++\nsclient.ini" /quiet'

@derektamsen
Copy link
Contributor

It appears this is the result of quotes being in the wrong location. This command works:

msiexec.exe /qn /norestart /i c:\temp\NSCP-0.5.0.62-x64.msi INSTALLLOCATION="C:\Program Files\NSClient++" CONFIGURATION_TYPE="ini://C:\Program Files\NSClient++\nsclient.ini" /quiet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants