I looks like it does install the package, but may be running into something else when it is running. In C:\chocolatey\chocolateyInstall there are some log files, what does the log file say about the installation?
On Thu, Feb 13, 2014 at 2:10 PM, Jay Benner <longri...@gmail.com> wrote: > I had deleted the entry in /lib. > > > On Wednesday, February 12, 2014 2:37:49 PM UTC-8, Jay Benner wrote: > >> I have a bunch of windows servers with NewRelic installed on them and I >> want to start managing those installs with Puppet. Seemed like the thing >> to do would be to have chocolatey uninstall what is there and reinstall >> within the framework of chocolatey so that I get addressable version >> information and the like. I created the following chocolatey package and >> it works fine when run from the command line using cinst: any existing >> version is removed and the new version, managed by chocolatey, gets put in >> its place. However, when I run it from Puppet, it does the uninstall ok, >> but the install never happens, even though chocolatey seems to think that >> the package is installed. >> >> >> stop-service "LiveVault Backup Service" >> $app = Get-WmiObject -Class Win32_Product | Where-Object { >> $_.Name -match "New Relic Server Monitor" >> } >> >> $app.Uninstall() >> $licensekey = "XXXXXXXXXXXXXX" >> >> $packageName = 'NewRelic_ServerMonitor' >> $installerType = 'MSI' >> $url = 'http://download.newrelic.com/windows_server_monitor/release/ >> NewRelicServerMonitor_x86_2.0.0.198.msi' >> $url64 = 'http://download.newrelic.com/windows_server_monitor/release/ >> NewRelicServerMonitor_x64_2.0.0.198.msi' >> $validExitCodes = @(0) >> $silentArgs = "/L*v install_Agent.log /qn NR_LICENSE_KEY=`"$licensekey`"" >> >> Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" >> "$url" "$url64" -validExitCodes $validExitCodes >> >> start-service "LiveVault Backup Service" >> Start-service "New Relic Server Monitor" >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/22e5472b-f50d-4d93-aadc-69ebaa2c9f74%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014, September 23-24 in San Francisco - * http://bit.ly/pupconf14 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4OcN74XZcaGk1i00PLD0iqVF%2BSFnrULh8b8wRwDC1d%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.