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

4,790

Downloads

3,961

Downloads of v 1.4.1.20160203

2/3/2016

Last update

Elastic Search Service Install

1.4.1.20160203

Package test results have failed.

This package was approved by moderator ferventcoder on 2/4/2016.

Installs Elastic Search as a service from the elasticsearch package.

To install Elastic Search Service Install, run the following command from the command line or from PowerShell:

C:\> choco install elasticsearch-service

To upgrade Elastic Search Service Install, run the following command from the command line or from PowerShell:

C:\> choco upgrade elasticsearch-service

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $path = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $path = (Join-Path ((get-item $path).parent.parent.FullName) -childPath elasticsearch\tools\*\bin)
    $path = @(gci $path\service.bat)
    $javaHomeEnvName = "JAVA_HOME"
    
    if($path -ne $null)
    {
    	$javaHome = [Environment]::GetEnvironmentVariable($javaHomeEnvName)
    	if($javaHome -eq $null)
    	{
    		#Try get from registry
    		$javaHome = (get-itemproperty "hklm:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment").JAVA_HOME
    
    		#If not in registry, look inside program files, then inside program files x86
    		if($javaHome -eq $null)
    		{
    			if(test-path "C:\Program Files\Java")
    			{
    				$jreFolders = [System.IO.Directory]::GetDirectories("C:\Program Files\Java", "jre*",
    									[System.IO.SearchOption]::TopDirectoryOnly)
    									
    				if($jreFolders.Count -gt 0)
    				{
    					$javaHome = $jreFolders | select -last 1
    				}
    				elseif(test-path "C:\Program Files (x86)\Java")
    				{
    					$jreFolders = [System.IO.Directory]::GetDirectories("C:\Program Files (x86)\Java", "jre*",
    									[System.IO.SearchOption]::TopDirectoryOnly)
    									
    					if($jreFolders.Count -gt 0)
    					{
    						$javaHome = $jreFolders | select -last 1
    					}
    				}
    			}
    		}
    
    
    		if($javaHome -ne $null)
    		{
    			[Environment]::SetEnvironmentVariable($javaHomeEnvName, $javaHome, [System.EnvironmentVariableTarget]::Machine);
    			[Environment]::SetEnvironmentVariable($javaHomeEnvName, $javaHome, [System.EnvironmentVariableTarget]::User);
    			[Environment]::SetEnvironmentVariable($javaHomeEnvName, $javaHome, [System.EnvironmentVariableTarget]::Process);
    		}
    	}
    	
    	$path = ($path[0]).FullName
    
    	Install-ChocolateyEnvironmentVariable "ES_START_TYPE" "auto"
    		
    	&"$path" "install"
    }
  • tools\chocolateyUninstall.ps1 Show
    $path = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $path = (Join-Path ((get-item $path).parent.parent.FullName) -childPath elasticsearch\tools\*\bin)
    $path = @(gci $path\service.bat)
    
    if($path -ne $null)
    {
    $path = ($path[0]).FullName
    
    &"$path" "remove"
    
    }

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

Package Maintainer(s)

Software Author(s)

  • https://github.com/elasticsearch/elasticsearch/contributors

Tags

Version History

Version Downloads Last updated Status
Elastic Search Service Install 1.4.1.20160202 249 Tuesday, February 2, 2016 approved
Elastic Search Service Install 1.4.1.20160127 253 Thursday, January 28, 2016 approved

Discussion for the Elastic Search Service Install Package

Ground rules:

  • This discussion is only about Elastic Search Service Install and the Elastic Search Service Install 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 Elastic Search Service Install, 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