Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of New Relic .NET Agent available.

New Relic .NET Agent

6.11.613.0

Package test results are passing.

This package was approved as a trusted package on 5/4/2017.

New Relic .NET Agent that allows you to monitor your .NET application. Package has following parameters:

-param 'licensekey=newrelickey' # Specify Your NewRelic license key
-param 'restartiis=true' # (Optional) Stop IIS service, install package, start IIS after.
-param 'licensekey=yourkey;restartiis=true' # Specify License key and handle IIS restarts.

To install New Relic .NET Agent, run the following command from the command line or from PowerShell:

C:\> choco install newrelic-dotnet --version 6.11.613.0

To upgrade New Relic .NET Agent, run the following command from the command line or from PowerShell:

C:\> choco upgrade newrelic-dotnet --version 6.11.613.0

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $package = 'newrelic-dotnet'
    
    $choco_params = @{
      PackageName = $package;
      FileType       = 'msi';
      SilentArgs     = '/qb INSTALLLEVEL=50'
      Url            = 'https://download.newrelic.com/dot_net_agent/release/NewRelicAgent_x86_6.11.613.0.msi';
      Url64bit       = 'https://download.newrelic.com/dot_net_agent/release/NewRelicAgent_x64_6.11.613.0.msi';
      checksum       = '5D93BB0759847A06324F300D18697564897C55FE7492A26A988D466BAEBE9DED'
      checksumType   = 'sha256'
      checksum64     = '8822C1D6482822706F80E48A04C1A7BCADEE4197091EC8DB909C0EF41AA02B12'
      checksumType64 = 'sha256'
      ValidExitCodes = @(0)
    }
    $restartiis = $false
    
    if (![string]::IsNullOrEmpty($env:chocolateyPackageParameters))
    {
      if ($env:chocolateyPackageParameters.ToLower().Contains("restartiis") -or $env:chocolateyPackageParameters.ToLower().Contains("license_key"))
      {    
        # Getting Parameters
        $rawTxt =  [regex]::escape($env:chocolateyPackageParameters)
        $params = $($rawTxt -split ';' | ForEach-Object {
          $temp= $_ -split '='
          "{0}={1}" -f $temp[0].Substring(0,$temp[0].Length),$temp[1]
        } | ConvertFrom-StringData)
    
        if ($params.restartiis -eq 'true')
        {      
          Write-Host "Found 'restartiis' parameter enabled."
          $restartiis = $true
        }
        else
        {
          $restartiis = $false
        }
        
        if (![string]::IsNullOrEmpty($params.license_key))
        {        
          # Passing License key
          $choco_params['SilentArgs'] = $choco_params['SilentArgs'] + " NR_LICENSE_KEY=" + $params.license_key      
        }
        else
        {
          Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
        }
      }
      else
      {
        Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
      }
    }
    else
    {
      Write-Warning "No New Relic license key specified. Please use -params 'license_key=<newrelic_key>' or alternatively specify it manually after installation."
    }
    
    try { #error handling is only necessary if you need to do anything in addition to/instead of the main helpers
      
      if ($restartiis)
      {
        # Stop IIS before installing
        $ServiceName = "W3SVC"
        $service = Get-Service "$ServiceName" -ErrorAction SilentlyContinue
        if ($service -ne $null)
        {
          
            Write-Host $($ServiceName + " service will be stopped")
    
            Stop-Service $ServiceName
             
            Write-Output "Sleeping for $sleep_timeout seconds"  
            
            $i = 0
            while (!(Get-Service $ServiceName | Where-Object {$_.status -eq "stopped"}))
            {  
              
              Write-Output "Waiting for ${ServiceName} to be stopped"    
              if ($i -gt $sleep_timeout)
              {
                throw "Can't wait for ${ServiceName} to be stopped. Took longer than ${sleep_timeout}s: Timeout"
              }
              Write-Output "[$i]"
              Start-Sleep -s 1
              $i++
            }
            Write-Output "${ServiceName} is stopped. Continue."
            
            Install-ChocolateyPackage @choco_params
            
            Write-Host "Configuring $ServiceName to autostart"
            
            Set-Service $ServiceName -startuptype "auto"
            
            Write-Host $("Starting "+$ServiceName+" service")
            Start-Service $ServiceName
        }
        else
        {  
          Write-Output "No ${ServiceName} service found. Nothing to restart. Continue."
          Install-ChocolateyPackage @choco_params
        }
      }
      else
      {  
        Write-Warning "IIS will not be restarted. Please do so manually. In order to stop & start IIS automatically use parameter: -params 'restartiis=true'. "    
        Install-ChocolateyPackage @choco_params
      }
      
    } catch {
      Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
      throw
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $package = 'newrelic-dotnet' # arbitrary name for the package, used in messages
    $ProductCode_x86 = '{5F80E6C2-A2B3-48B1-88DE-67F3B14A40AE}'
    $ProductCode_x64 = '{66DE921D-9C8C-490D-A225-6483FE34EE51}'
    
    if( `
      (Test-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x86") -or `
      (Test-Path "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x86") `
    ){
      try {
        # http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
        $msiArgs = "/X $ProductCode_x86 /qb"
      
        Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
    
        Write-ChocolateySuccess $package
      } catch {
        Write-ChocolateyFailure $package "$($_.Exception.Message)"
        throw
      }
    }
    
    if( `
      (Test-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x64") -or `
      (Test-Path "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$ProductCode_x64") `
    ){
      try {
        # http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec
        $msiArgs = "/X $ProductCode_x64 /qb"
    
        Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec'
    
        Write-ChocolateySuccess $package
      } catch {
        Write-ChocolateyFailure $package "$($_.Exception.Message)"
        throw
      }
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • NewRelic

Copyright

https://www.newrelic.com

Tags

Release Notes

https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-6116130

Version History

Version Downloads Last updated Status
New Relic .NET Agent 8.16.567.0 1859 Tuesday, June 11, 2019 approved
New Relic .NET Agent 8.15.455.0 1459 Monday, April 22, 2019 approved
New Relic .NET Agent 8.14.222.0 745 Tuesday, March 19, 2019 approved
New Relic .NET Agent 8.13.798.0 1606 Tuesday, February 12, 2019 approved
New Relic .NET Agent 8.12.216.0 661 Thursday, January 10, 2019 approved
New Relic .NET Agent 8.11.157.0 631 Monday, December 17, 2018 approved
New Relic .NET Agent 8.10.51.0 739 Friday, November 30, 2018 approved
New Relic .NET Agent 8.9.130.0 782 Thursday, November 15, 2018 approved
New Relic .NET Agent 8.8.83.0 1890 Wednesday, October 17, 2018 approved
Show More

Discussion for the New Relic .NET Agent Package

Ground rules:

  • This discussion is only about New Relic .NET Agent and the New Relic .NET Agent package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or New Relic .NET Agent, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok