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

Sublime Text 3

3.0.0.3126

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

There are versions of this package awaiting moderation . See the Version History section below.

This package was approved by moderator ferventcoder on 10/11/2016.

Sublime Text 3 is a sophisticated text editor for code, html and prose. You'll love the slick user interface and extraordinary features. Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use. Sublime text 3 is currently in beta.

To install Sublime Text 3, run the following command from the command line or from PowerShell:

C:\> choco install sublimetext3

To upgrade Sublime Text 3, run the following command from the command line or from PowerShell:

C:\> choco upgrade sublimetext3

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    # Variables
    $package = 'sublimetext3'
    $build = '3126'
    
    # Determine if Sublime Text 3 $build Version is installed
    #   - Return the path if found
    #   - Return $false if not
    function getInstallationDirectory($buildArg) {
    
      $installFolder = 'Sublime Text 3'
      $installedPath = [string]::empty
      $found = $false
    
      if(!${env:ProgramFiles(x86)}) {
    
        # 32 bit machine
        $installedPath = Join-Path $Env:ProgramFiles $installFolder;
    
      } else {
    
        # 64 bit machine
        # Get the first path which is existing
        $installedPath = (Join-Path "${Env:ProgramFiles(x86)}" $installFolder),
        (Join-Path $Env:ProgramFiles $installFolder) |
        ? { Test-Path $_ } |
        Select -First 1
    
      }
    
      # Check Sublime Text's folder existence
      if (![string]::IsNullOrEmpty($installedPath) -and (Test-Path $installedPath)) {
    
        $exe = Join-Path $installedPath 'sublime_text.exe'
    
        # Check Sublime Executable existence
        if (![string]::IsNullOrEmpty($exe) -and (Test-Path $exe)) {
          $version = (Get-Command $exe).FileVersionInfo.ProductVersion
          $found = ($version -eq $buildArg)
        }
      }
    
      # If we don't found the build we are looking for
      if (!$found) {
        $installedPath = $false
      }
    
      return $installedPath;
    }
    
    # Self Executing utiliy function
    $result = (getInstallationDirectory($build))
    
    if ( !($result -eq $false) )  {
    
      # Sublime is installed
      Write-Host "$package is already installed to : " $result
    
    } else {
    
      # Sublime is not installed
      $params = @{
        PackageName = $package;
        FileType = 'exe';
        #uses InnoSetup - http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
        SilentArgs = '/VERYSILENT /NORESTART /TASKS="contextentry"';
        Url = 'https://download.sublimetext.com/Sublime Text Build 3126 Setup.exe';
        Url64Bit = 'https://download.sublimetext.com/Sublime%20Text%20Build%203126%20x64%20Setup.exe';
      }
    
      Install-ChocolateyPackage @params
    }
  • tools\chocolateyUninstall.ps1 Show
    # Variables
    $package = 'sublimetext3'
    $build = '3126'
    
    # Determine if Sublime Text 3 $build Version is installed
    #   - Return the path if found
    #   - Return $false if not
    function getInstallationDirectory($buildArg) {
    
      $installFolder = 'Sublime Text 3'
      $installedPath = [string]::empty
      $found = $false
    
      if(!${env:ProgramFiles(x86)}) {
    
        # 32 bit machine
        $installedPath = Join-Path $Env:ProgramFiles $installFolder;
    
      } else {
    
        # 64 bit machine
        # Get the first path which is existing
        $installedPath = (Join-Path "${Env:ProgramFiles(x86)}" $installFolder),
        (Join-Path $Env:ProgramFiles $installFolder) |
        ? { Test-Path $_ } |
        Select -First 1
    
      }
    
      # Check Sublime Text's folder existence
      if (![string]::IsNullOrEmpty($installedPath) -and (Test-Path $installedPath)) {
    
        $exe = Join-Path $installedPath 'sublime_text.exe'
    
        # Check Sublime Executable existence
        if (![string]::IsNullOrEmpty($exe) -and (Test-Path $exe)) {
          $version = (Get-Command $exe).FileVersionInfo.ProductVersion
          $found = ($version -eq $buildArg)
        }
      }
    
      # If we don't found the build we are looking for
      if (!$found) {
        $installedPath = $false
      }
    
      return $installedPath;
    }
    
    # Self Executing utiliy function
    $result = (getInstallationDirectory($build))
    
    if ( !($result -eq $false) )  {
    
      # Sublime is installed Start the uninstallation
      Push-Location $result # move to Sublime Text Folder
      $uninstallerName = 'unins000.exe'
    
      # Check if the Uninstaller is present in $result folder
      if (Test-Path $uninstallerName) {
    
        $params = @{
          PackageName = $package;
          FileType = 'exe';
          SilentArgs = '/SILENT /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /TASKS="contextentry"';
          File = (Join-Path $result $uninstallerName)
        }
    
       Uninstall-ChocolateyPackage @params
    
      }
    } else {
    
      # Sublime is not installed
      Write-Host "Sublime Text $build is not installed"
    }

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.

Maintainer(s)

Software Author(s)

  • Jon Skinner

Tags

Release Notes

http://www.sublimetext.com/3

Version History

Version Downloads Last updated Status
Sublime Text 3 3.0.0.3143 34 Tuesday, November 14, 2017 submitted
Sublime Text 3 3.0.0.3114 9949 Wednesday, May 18, 2016 approved
Sublime Text 3 3.0.0.3103 8012 Wednesday, February 24, 2016 approved
Sublime Text 3 3.0.0.3083 27829 Monday, May 4, 2015 approved
Sublime Text 3 3.0.0.3065 17493 Monday, September 15, 2014 approved
Sublime Text 3 3.0.0.3059 8277 Friday, January 3, 2014  
Sublime Text 3 3.0.0.3047 1870 Tuesday, July 23, 2013  

Discussion for the Sublime Text 3 Package

Ground rules:

  • This discussion is only about Sublime Text 3 and the Sublime Text 3 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 Sublime Text 3, 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