
874,502
Downloads
3,297
Downloads of v 0.140.0
10/27/2014
Last update
Atom
0.140.0
Read more @http://atom.io
To install Atom, run the following command from the command line or from PowerShell:
C:\> choco install atom
--version 0.140.0
To upgrade Atom, run the following command from the command line or from PowerShell:
C:\> choco upgrade atom
--version 0.140.0
Files
Hide- tools\functions.ps1
Show
function Install-ChocolateyShortcut { param( [string] $shortcutFilePath, [string] $targetPath, [string] $workingDirectory, [string] $arguments, [string] $iconLocation, [string] $description ) Write-Debug "Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: `'$shortcutFilePath`', TargetPath: `'$targetPath`', WorkingDirectory: `'$workingDirectory`', Arguments: `'$arguments`', IconLocation: `'$iconLocation`', Description: `'$description`'"; if(!$shortcutFilePath) { Write-ChocolateyFailure "Install-ChocolateyShortcut" "Missing ShortCutFilePath input parameter." return } if(!$targetPath) { Write-ChocolateyFailure "Install-ChocolateyShortcut" "Missing TargetPath input parameter." return } if(!(Test-Path($targetPath))) { Write-ChocolateyFailure "Install-ChocolateyShortcut" "TargetPath does not exist, so can't create shortcut." return } if($iconLocation) { if(!(Test-Path($iconLocation))) { Write-ChocolateyFailure "Install-ChocolateyShortcut" "IconLocation does not exist, so can't create shortcut." return } } if($workingDirectory) { if(!(Test-Path($workingDirectory))) { Write-ChocolateyFailure "Install-ChocolateyShortcut" "WorkingDirectory does not exist, so can't create shortcut." return } } Write-Debug "Creating Shortcut..." try { $global:WshShell = New-Object -com "WScript.Shell" $lnk = $global:WshShell.CreateShortcut($shortcutFilePath) $lnk.TargetPath = $targetPath $lnk.WorkingDirectory = $workingDirectory $lnk.Arguments = $arguments if($iconLocation) { $lnk.IconLocation = $iconLocation } $lnk.Description = $description $lnk.Save() Write-Debug "Shortcut created." Write-ChocolateySuccess "Install-ChocolateyShortcut completed" } catch { Write-ChocolateyFailure "Install-ChocolateyShortcut" "There were errors attempting to create shortcut. The error message was '$_'." } } function Install-BinFile { param( [string] $name, [string] $path ) Write-Debug "Running 'Install-BinFile' for $name with path:`'$path`'"; $packageBatchFileName = Join-Path $nugetExePath "$name.bat" if (Test-Path ($packageBatchFileName)) {Remove-Item $packageBatchFileName -force} $path = $path.ToLower().Replace($nugetPath.ToLower(), "..\").Replace("\\","\") $path = "%DIR%$($path)" $pathBash = $path.Replace("%DIR%..\","`$DIR/../").Replace("\","/") Write-Host "Adding $packageBatchFileName and pointing to `'$path`'." -ForegroundColor $Note "@echo off SET DIR=%~dp0% cmd /c ""$path %*"" exit /b %ERRORLEVEL%" | Out-File $packageBatchFileName -encoding ASCII } function Install-ChocolateyExplorerMenuItemEx { param( [string]$menuKey, [string]$menuLabel, [string]$command, [string]$iconLocation, [ValidateSet('file','directory','background')] [string]$type = "file" ) try { Write-Debug "Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'$menuKey', menuLabel:'$menuLabel', command:'$command', type '$type', iconLocation:'$iconLocation'" $argName = "%1" if($type -eq "file") { $key = "*" } elseif($type -eq "directory") { $key="directory" } elseif($type -eq "background") { $key="directory\background" $argName="%V" } else{ return 1 } $iconCmd ="" if($iconLocation) { $iconCmd="Set-ItemProperty -LiteralPath 'HKCR:\$key\shell\$menuKey' -Name 'Icon' -Value '$iconLocation'" } $elevated = "` if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};` if(!(test-path -LiteralPath 'HKCR:\$key\shell\$menuKey')) { new-item -Path 'HKCR:\$key\shell\$menuKey' };` Set-ItemProperty -LiteralPath 'HKCR:\$key\shell\$menuKey' -Name '(Default)' -Value '$menuLabel';` if(!(test-path -LiteralPath 'HKCR:\$key\shell\$menuKey\command')) { new-item -Path 'HKCR:\$key\shell\$menuKey\command' };` Set-ItemProperty -LiteralPath 'HKCR:\$key\shell\$menuKey\command' -Name '(Default)' -Value '$command \`"$argName\`"';` $iconCmd;" return $elevated } catch { $errorMessage = "'$menuKey' explorer menu item was not created $($_.Exception.Message)" Write-Error $errorMessage throw $errorMessage } }
- tools\chocolateyInstall.ps1
Show
$dest = $(Split-Path -parent $MyInvocation.MyCommand.Definition) . $(Join-Path $dest "functions.ps1") # Install zip $packageName = 'Atom' # arbitrary name for the package, used in messages $url = 'https://github.com/atom/atom/releases/download/v0.140.0/atom-windows.zip' # download url $url64 = $url # 64bit URL here or just use the same as $url Install-ChocolateyZipPackage "$packageName" "$url" "$dest" "$url64" $exePath = $dest + '\Atom\atom.exe' # Install desktop shortcut $desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory)) $desktopLink = Join-Path $desktop "$packageName.lnk" Install-ChocolateyShortcut -shortcutFilePath $desktopLink -targetPath $exePath # Install start menu shortcut $startMenu = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Programs)) $githubStartMenuGroup = Join-Path $startMenu "GitHub, Inc" New-Item $githubStartMenuGroup -type directory -force $startMenuLink = Join-Path $githubStartMenuGroup "$packageName.lnk" Install-ChocolateyShortcut -shortcutFilePath $startMenuLink -targetPath $exePath $iconPath = '"' + $exePath + '"' # Install explorer menu file, directory, and background shortcuts $elevated = @() $elevated += $(Install-ChocolateyExplorerMenuItemEx "Atom" "Open with Atom" "$dest\Atom\atom.exe" -iconLocation $iconPath -type "file") $elevated += $(Install-ChocolateyExplorerMenuItemEx "Atom" "Open Folder with Atom" "$dest\Atom\atom.exe" -iconLocation $iconPath -type "directory") $elevated += $(Install-ChocolateyExplorerMenuItemEx "Atom" "Open Folder with Atom" "$dest\Atom\atom.exe" -iconLocation $iconPath -type "background") $cmd = $($elevated -join ';') Start-ChocolateyProcessAsAdmin $cmd # Install apm shortcut Install-BinFile "apm" "$dest\Atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd" Write-Host "explorer menu items created"
Virus Scan Results
- D3DCompiler_43.dll (2f23182ec6f4) - ## / 57 - Log in or click on link to see number of positives
- xinput1_3.dll (8d540d484ea4) - ## / 62 - Log in or click on link to see number of positives
- node.exe (7eec5a86b4c9) - ## / 56 - Log in or click on link to see number of positives
- msvcp120.dll (87c42ca15547) - ## / 67 - Log in or click on link to see number of positives
- msvcr120.dll (86e39b5995af) - ## / 68 - Log in or click on link to see number of positives
- vccorlib120.dll (9c9d4e421c55) - ## / 64 - Log in or click on link to see number of positives
- semver.browser.js.gz (65b0109ca3d1) - ## / 56 - Log in or click on link to see number of positives
- semver.min.js.gz (7bf70abf3834) - ## / 56 - Log in or click on link to see number of positives
- invalid.zip (28fca28ef02d) - ## / 57 - Log in or click on link to see number of positives
- ctags-win32.exe (af38be460893) - ## / 57 - Log in or click on link to see number of positives
- chromiumcontent.dll (9268db1f2b70) - ## / 54 - Log in or click on link to see number of positives
- ffmpegsumo.dll (9a5a1b6dca37) - ## / 55 - Log in or click on link to see number of positives
- libEGL.dll (af6d4f4c7017) - ## / 55 - Log in or click on link to see number of positives
- libGLESv2.dll (12255a0ea94e) - ## / 55 - Log in or click on link to see number of positives
- Atom.0.140.0.nupkg (83e652362108) - ## / 57 - Log in or click on link to see number of positives
- atom.exe (ef7c61c7ec20) - ## / 56 - Log in or click on link to see number of positives
- atom-windows.zip (2a824701be51) - ## / 50 - Log in or click on link to see number of positives
Dependencies
This package has no dependencies.
Package Maintainer(s)
Software Author(s)
Tags
Release Notes
Version History
Version | Downloads | Last updated | Status |
---|---|---|---|
Atom 1.35.0-beta0 | 118 | Wednesday, January 9, 2019 | approved |
Atom 1.34.0 | 8543 | Wednesday, January 9, 2019 | approved |
Atom 1.34.0-beta1 | 66 | Thursday, December 20, 2018 | approved |
Atom 1.34.0-beta0 | 96 | Thursday, November 29, 2018 | approved |
Atom 1.33.1 | 4215 | Thursday, December 20, 2018 | approved |
Atom 1.33.0 | 4928 | Thursday, November 29, 2018 | approved |
Atom 1.33.0-beta3 | 20 | Wednesday, November 21, 2018 | responded |
Atom 1.33.0-beta2 | 85 | Friday, November 9, 2018 | approved |
Atom 1.33.0-beta1 | 60 | Wednesday, October 31, 2018 | approved |
Atom 1.33.0-beta0 | 71 | Wednesday, October 24, 2018 | approved |
Discussion for the Atom Package
Ground rules:
- This discussion is only about Atom and the Atom 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 Atom, 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.