atom / chocolatey

chocolatey installer for Atom
MIT License
12 stars 17 forks source link

Error during Atom update #32

Closed Stanzilla closed 9 years ago

Stanzilla commented 9 years ago
Write-Error : [ERROR] Running C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe with
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\Chocol atey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolatey\lib\At om.0.148.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Ato m';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell \Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramDat a\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolate y\lib\Atom.0.148.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\ba ckground\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Fold er with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\dire ctory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C: \ProgramData\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramDat a\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\Chocolatey\chocolateyinstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:46 char:5
+     Write-Error $errorMessage
+     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Write-Error : Package 'Atom v0.148.0' did not install successfully: [ERROR] Running C:\WINDOWS\System32\Window sPowerShell\v1.0\powershell.exe with
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\Chocol atey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolatey\lib\At om.0.148.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Ato m';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell \Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramDat a\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolate y\lib\Atom.0.148.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\ba ckground\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Fold er with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\dire ctory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C: \ProgramData\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramDat a\Chocolatey\lib\Atom.0.148.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\Chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+ ...             Write-Error "Package `'$installedPackageName v$installedP ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
ferventcoder commented 9 years ago

@Stanzilla You will probably need to give debug output.

Stanzilla commented 9 years ago

@ferventcoder how? Sorry, not very familiar with this..

ferventcoder commented 9 years ago

Add -debug to the command

Stanzilla commented 9 years ago
λ choco update atom -debug
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 'update'|$force=False
|$prerelease=False|$packageNames='atom'
|$source=''
|$version=''|$allVersions=False
|$overrideArguments=False|$InstallArguments=''
|$localonly=False|$verbosity=False|$debug=True|$quiet=False
|$name=''|$ignoreDependencies=False|$forceX86=False
|$packageParameters=''
|PowerShellVersion=5.0.9879.0|OSVersion=6.4.9879.0
DEBUG: Current Security Protocol - Ssl3, Tls
DEBUG: Running 'Chocolatey-Update' for 'atom' with source:''.
DEBUG: Running 'Chocolatey-Version' for atom with source:''.
DEBUG: Getting local packages based on all or passed in package name
DEBUG: Running 'Chocolatey-List' with selector: 'atom', source:'C:\ProgramData\Chocolatey\lib'
DEBUG: Showing prerelease versions of packages
DEBUG: Executing command ["C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe" list "atom" -Prerelease
-NonInteractive -Source "C:\ProgramData\Chocolatey\lib"]
DEBUG: Command ["C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe" list "atom" -Prerelease
-NonInteractive -Source "C:\ProgramData\Chocolatey\lib"] exited with '0'.
DEBUG: Getting atom from returned local list
DEBUG: Running 'Chocolatey-List' with selector: 'Atom', source:''
DEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
DEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the user config the value of 'useNuGetForSources' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'
DEBUG: Running 'Get-UserConfigValue' with configValue:'sources'
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'
DEBUG: Using global sources
DEBUG: Using '-Source "https://chocolatey.org/api/v2/;"' as the source arguments
DEBUG: Executing command ["C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe" list "Atom" -NonInteractive
-Source "https://chocolatey.org/api/v2/;"]
DEBUG: Command ["C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe" list "Atom" -NonInteractive -Source
"https://chocolatey.org/api/v2/;"] exited with '0'.
DEBUG: Getting Atom from returned remote list
DEBUG: Long version of 0.149.0 is '000000000000.000000000149.000000000000'
DEBUG: Long version of 0.146.0 is '000000000000.000000000146.000000000000'
Updating Atom from 0.146.0 to 0.149.0
DEBUG: Running 'Chocolatey-NuGet' for Atom with source:''. Force? False
Chocolatey (v0.9.8.28-rc1) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.
DEBUG: Installing packages to "C:\ProgramData\Chocolatey\lib".
DEBUG: Running 'Run-NuGet' for Atom with source: '', version:''
DEBUG: ___ NuGet ____
DEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
DEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the user config the value of 'useNuGetForSources' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'
DEBUG: Running 'Get-UserConfigValue' with configValue:'sources'
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'
DEBUG: Using global sources
DEBUG: Using '-Source "https://chocolatey.org/api/v2/;"' as the source arguments
DEBUG: Calling 'C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe' install Atom -OutputDirectory
"C:\ProgramData\Chocolatey\lib" -Source "https://chocolatey.org/api/v2/;" -NonInteractive -NoCache
DEBUG: Installing 'Atom 0.149.0'.
Successfully installed 'Atom 0.149.0'.
DEBUG: Evaluating NuGet output for line: Installing 'Atom 0.149.0'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'Atom 0.149.0'.
DEBUG: NuGet installed Atom. If we are ignoring dependencies (False) then we will clean this up.

Atom v0.149.0
DEBUG: Running 'Delete-ExistingErrorLog' for Atom
DEBUG: Looking for failure log at 'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\failure.log'
DEBUG: Running 'Run-ChocolateyPS1' for Atom with packageFolder:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0',
action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\ProgramData\Chocolatey\lib\Atom.0.149.0'. If
chocolateyinstall.ps1 is found, it will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyZipPackage' for Atom with
url:'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip', unzipLocation:
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools', url64bit:
'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip', specificFolder: '', checksum: '',
checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ChocolateyWebFile' for Atom with
url:'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip',
fileFullPath:'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip',
url64bit:'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip', checksum: '',
checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 64 bit
DEBUG: Setting url to 'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip' and
bitPackage to 64
DEBUG: Running 'Get-WebHeaders' with
url:'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip', userAgent: 'chocolatey command  line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Request Headers:
DEBUG:   'Accept':'*/*'
DEBUG:   'User-Agent':'chocolatey command line'
DEBUG: Response Headers:
DEBUG:   'x-amz-id-2':'5wRiNK0yKd8J+3ED/DJoqi4CSKDBf8tiNl5B3rO06IBJ7A0O0h/vyvUIYYPCe+59'
DEBUG:   'x-amz-request-id':'088D7D2326A65A28'
DEBUG:   'x-amz-meta-surrogate-control':'max-age=31557600'
DEBUG:   'x-amz-meta-surrogate-key':'repository-3228505 user-3697332'
DEBUG:   'Content-Disposition':'attachment; filename=atom-windows.zip'
DEBUG:   'Accept-Ranges':'bytes'
DEBUG:   'Content-Length':'70016882'
DEBUG:   'Cache-Control':'max-age=31557600'
DEBUG:   'Content-Type':'application/octet-stream'
DEBUG:   'Date':'Thu, 20 Nov 2014 17:26:43 GMT'
DEBUG:   'ETag':'"255c332a750992569fc2355e54f8c0a2"'
DEBUG:   'Last-Modified':'Thu, 20 Nov 2014 00:58:44 GMT'
DEBUG:   'Server':'AmazonS3'
Downloading Atom 64 bit
  from 'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip'
DEBUG: Running 'Get-WebFile' for C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip with
url:'https://github.com/atom/atom/releases/download/v0.149.0/atom-windows.zip', userAgent: 'chocolatey command  line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Checking that 'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip' is the size we
expect it to be.
DEBUG: Verifying package provided checksum of '' for
'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Running 'Get-CheckSumValid' with
file:'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip', checksum: '', checksumType: ''
DEBUG: Running 'Get-ChocolateyUnzip' with
fileFullPath:'C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'', destination:
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools', specificFolder: '`, packageName: 'Atom'
Extracting C:\Users\Benjamin\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools...
DEBUG: wrapping 7za invocation with Write-FileUpdateLog
DEBUG: Running 'Write-FileUpdateLog' with
logFilePath:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\AtomInstall.zip.txt'',
locationToMonitor:C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools, Operation: '
    param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef)
    $process = Start-Process $7zip -ArgumentList "x -o`"$destination`" -y `"$fileFullPath`"" -Wait
-WindowStyle Hidden -PassThru
    # this is here for specific cases in Posh v3 where -Wait is not honored
    try { if (!($process.HasExited)) { Wait-Process -Id $process.Id } } catch { }

    $exitCodeRef.Value = $process.ExitCode
  '
DEBUG: Tracking current state of 'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools'
DEBUG: 7za exit code: 0
C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
DEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath:
'C:\Users\Benjamin\Desktop\Atom.lnk', TargetPath:
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe', WorkingDirectory: '', Arguments: '',
IconLocation: '', Description: ''
DEBUG: Creating Shortcut...
DEBUG: Shortcut created.
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!

    Directory: C:\Users\Benjamin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       11/14/2014     22:07                GitHub, Inc
DEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath:
'C:\Users\Benjamin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\Atom.lnk', TargetPath:
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe', WorkingDirectory: '', Arguments: '',
IconLocation: '', Description: ''
DEBUG: Creating Shortcut...
DEBUG: Shortcut created.
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!

DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open with Atom',
command:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe', type 'file',
iconLocation:'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'
DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom',
command:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe', type 'directory',
iconLocation:'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'
DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom',
command:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe', type 'background',
iconLocation:'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'
DEBUG: Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'powershell', statements: '
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command'
};
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
 Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom'
};
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with
Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path
'HKCR:\directory\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
 Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path
'HKCR:\directory\background\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open
Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path
'HKCR:\directory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%V\"';
 Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"';'
DEBUG: Elevating Permissions and running C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile
-ExecutionPolicy unrestricted -Command "& import-module -name
'C:\ProgramData\Chocolatey\chocolateyinstall\helpers\chocolateyInstaller.psm1'; try{
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command'
};
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
 Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom'
};
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with
Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path
'HKCR:\directory\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
 Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path
'HKCR:\directory\background\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open
Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path
'HKCR:\directory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value
'C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%V\"';
 Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value
'"C:\ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'; start-sleep 6;}catch{write-error 'That was  not sucessful';start-sleep 8;throw;}". This may take awhile, depending on the statements.
Write-Error : [ERROR] Running C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe with
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\Chocol atey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolatey\lib\At om.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Ato m';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell \Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramDat a\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolate y\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\ba ckground\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Fold er with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\dire ctory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C: \ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramDat a\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\Chocolatey\chocolateyinstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:46 char:5
+     Write-Error $errorMessage
+     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Running 'Move-BadInstall' for Atom version: '0.149.0',
packageFolder:'C:\ProgramData\Chocolatey\lib\Atom.0.149.0'
DEBUG: Moving bad package 'Atom v0.149.0' to 'C:\ProgramData\Chocolatey\lib-bad'.
Write-Error : Package 'Atom v0.149.0' did not install successfully: [ERROR] Running C:\WINDOWS\System32\Window sPowerShell\v1.0\powershell.exe with
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\Chocol atey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolatey\lib\At om.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' } ;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Ato m';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell \Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramDat a\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\Chocolate y\lib\Atom.0.149.0\tools\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\ba ckground\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Fold er with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\dire ctory\background\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C: \ProgramData\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramDat a\Chocolatey\lib\Atom.0.149.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\Chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+ ...             Write-Error "Package `'$installedPackageName v$installedP ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Evaluating NuGet output for line:
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
DEBUG: Running 'Get-ConfigValue' with configValue:'ksMessage'
DEBUG: Running 'Get-UserConfigValue' with configValue:'ksMessage'
DEBUG: After checking the user config the value of 'ksMessage' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'ksMessage'
DEBUG: After checking the global config the value of 'ksMessage' is 'false'
ferventcoder commented 9 years ago

There is a portion of the debug output that is missing, specifically the very first part where it gives all the details of your command, what OS, what version of Posh you are running and the like. It would be most beneficial to get that information as well.

Stanzilla commented 9 years ago

Sorry, fixed!

ferventcoder commented 9 years ago

Posh v5 is still in CTP, can you confirm you see this behavior on a different version of POSH? Win10 is also in CTP, which means it could be something to watch and see if things are fixed.

ferventcoder commented 9 years ago

@kevinsawicki ^^

kevinsawicki commented 9 years ago

Sorry, not sure what posh v5 and CTP are.

ferventcoder commented 9 years ago
ferventcoder commented 9 years ago

It's something to start thinking about, but honestly I don't give much validity to things that are not ready for primetime b/c I expect them to have bugs if that makes sense

afontaine commented 9 years ago

I'm running into the same issues on Win 8.1 with POSH v4 trying to update to Atom v0.150. Debug output below.

DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 'update'|$force=False

|$prerelease=False|$packageNames='atom'

|$source=''

|$version=''|$allVersions=False

|$overrideArguments=False|$InstallArguments=''

|$localonly=False|$verbosity=False|$debug=True|$quiet=False

|$name=''|$ignoreDependencies=False|$forceX86=False

|$packageParameters=''

|PowerShellVersion=4.0|OSVersion=6.3.9600.0
DEBUG: Current Security Protocol - Ssl3, Tls
DEBUG: Running 'Chocolatey-Update' for 'atom' with source:''.
DEBUG: Running 'Chocolatey-Version' for atom with source:''.
DEBUG: Getting local packages based on all or passed in package name
DEBUG: Running 'Chocolatey-List' with selector: 'atom', source:'C:\ProgramData\chocolatey\lib'
DEBUG: Showing prerelease versions of packages
DEBUG: Executing command ["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list "atom" -Prerelease -NonInteractive -Source 
"C:\ProgramData\chocolatey\lib"]
DEBUG: Command ["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list "atom" -Prerelease -NonInteractive -Source 
"C:\ProgramData\chocolatey\lib"] exited with '0'.
DEBUG: Getting atom from returned local list
DEBUG: Running 'Chocolatey-List' with selector: 'Atom', source:''
DEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
DEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the user config the value of 'useNuGetForSources' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'
DEBUG: Running 'Get-UserConfigValue' with configValue:'sources'
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'
DEBUG: Using global sources
DEBUG: Using '-Source "https://chocolatey.org/api/v2/;"' as the source arguments
DEBUG: Executing command ["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list "Atom" -NonInteractive -Source 
"https://chocolatey.org/api/v2/;"]
DEBUG: Command ["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list "Atom" -NonInteractive -Source 
"https://chocolatey.org/api/v2/;"] exited with '0'.
DEBUG: Getting Atom from returned remote list
DEBUG: Long version of 0.150.0 is '000000000000.000000000150.000000000000'
DEBUG: Long version of 0.146.0 is '000000000000.000000000146.000000000000'
Updating Atom from 0.146.0 to 0.150.0
DEBUG: Running 'Chocolatey-NuGet' for Atom with source:''. Force? False
Chocolatey (v0.9.8.28) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.
DEBUG: Installing packages to "C:\ProgramData\chocolatey\lib".
DEBUG: Running 'Run-NuGet' for Atom with source: '', version:''
DEBUG: ___ NuGet ____
DEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
DEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the user config the value of 'useNuGetForSources' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
DEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'
DEBUG: Running 'Get-UserConfigValue' with configValue:'sources'
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'
DEBUG: Using global sources
DEBUG: Using '-Source "https://chocolatey.org/api/v2/;"' as the source arguments
DEBUG: Calling 'C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe' install Atom -OutputDirectory "C:\ProgramData\chocolatey\lib"
 -Source "https://chocolatey.org/api/v2/;" -NonInteractive -NoCache
DEBUG: Installing 'Atom 0.150.0'.

Successfully installed 'Atom 0.150.0'.
DEBUG: Evaluating NuGet output for line: Installing 'Atom 0.150.0'.
DEBUG: Evaluating NuGet output for line: Successfully installed 'Atom 0.150.0'.
DEBUG: NuGet installed Atom. If we are ignoring dependencies (False) then we will clean this up.

Atom v0.150.0
DEBUG: Running 'Delete-ExistingErrorLog' for Atom
DEBUG: Looking for failure log at 'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\failure.log'
DEBUG: Running 'Run-ChocolateyPS1' for Atom with packageFolder:'C:\ProgramData\chocolatey\lib\Atom.0.150.0', action: 'install'
DEBUG:   __ PowerShell install (chocolateyinstall.ps1) __
DEBUG:   Looking for chocolateyinstall.ps1 in folder 'C:\ProgramData\chocolatey\lib\Atom.0.150.0'. If chocolateyinstall.ps1 is 
found, it will be run.
DEBUG: Action file is 'chocolateyInstall.ps1'
DEBUG: Running 'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\chocolateyInstall.ps1'
DEBUG: Running 'Install-ChocolateyZipPackage' for Atom with 
url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', unzipLocation: 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools', url64bit: 
'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', specificFolder: '', checksum: '', checksumType: '', 
checksum64: '', checksumType64: '' 
DEBUG: Running 'Get-ChocolateyWebFile' for Atom with url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip',
 fileFullPath:'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip', 
url64bit:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', checksum: '', checksumType: '', checksum64: '',
 checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 64 bit
DEBUG: Setting url to 'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip' and bitPackage to 64
DEBUG: Running 'Get-WebHeaders' with url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', userAgent: 
'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Request Headers:
DEBUG:   'Accept':'*/*'
DEBUG:   'User-Agent':'chocolatey command line'
DEBUG: Response Headers:
DEBUG:   'x-amz-id-2':'D6fHnVe0dE9kG6qQVeR0RCOopDxQEi07xnqW+MPro0iqROduHelo3b9FUPJAXUEk'
DEBUG:   'x-amz-request-id':'3C43F89F19DB20F1'
DEBUG:   'x-amz-meta-surrogate-control':'max-age=31557600'
DEBUG:   'x-amz-meta-surrogate-key':'repository-3228505 user-3697332'
DEBUG:   'Content-Disposition':'attachment; filename=atom-windows.zip'
DEBUG:   'Accept-Ranges':'bytes'
DEBUG:   'Content-Length':'70043976'
DEBUG:   'Cache-Control':'max-age=31557600'
DEBUG:   'Content-Type':'application/octet-stream'
DEBUG:   'Date':'Mon, 24 Nov 2014 17:38:58 GMT'
DEBUG:   'ETag':'"b4b2e352dd83071d8b55b53f7daa2d19"'
DEBUG:   'Last-Modified':'Thu, 20 Nov 2014 20:29:33 GMT'
DEBUG:   'Server':'AmazonS3'
DEBUG: Atom's requested file has already been downloaded. Using cached copy at
  'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Checking that 'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip' is the size we expect it to be.
DEBUG: Verifying package provided checksum of '' for 'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'.
DEBUG: Running 'Get-CheckSumValid' with file:'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip', checksum: '', 
checksumType: ''
DEBUG: Running 'Get-ChocolateyUnzip' with fileFullPath:'C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip'', 
destination: 'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools', specificFolder: '`, packageName: 'Atom'
Extracting C:\Users\Andrew\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools...
DEBUG: wrapping 7za invocation with Write-FileUpdateLog
DEBUG: Running 'Write-FileUpdateLog' with logFilePath:'C:\ProgramData\chocolatey\lib\Atom.0.150.0\AtomInstall.zip.txt'', 
locationToMonitor:C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools, Operation: '

    param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef)

    $process = Start-Process $7zip -ArgumentList "x -o`"$destination`" -y `"$fileFullPath`"" -Wait -WindowStyle Hidden -PassThru

    # this is here for specific cases in Posh v3 where -Wait is not honored

    try { if (!($process.HasExited)) { Wait-Process -Id $process.Id } } catch { }

    $exitCodeRef.Value = $process.ExitCode

  '
DEBUG: Tracking current state of 'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools'
DEBUG: 7za exit code: 0
C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
DEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: 'C:\Users\Andrew\Desktop\Atom.lnk', TargetPath: 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe', WorkingDirectory: '', Arguments: '', IconLocation: '', 
Description: ''
DEBUG: Creating Shortcut...
DEBUG: Shortcut created.
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!

    Directory: C:\Users\Andrew\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

Mode                LastWriteTime     Length Name                                                                                   
----                -------------     ------ ----                                                                                   
d----        07/12/2014     13:38            GitHub, Inc                                                                            
DEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: 
'C:\Users\Andrew\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc\Atom.lnk', TargetPath: 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe', WorkingDirectory: '', Arguments: '', IconLocation: '', 
Description: ''
DEBUG: Creating Shortcut...
DEBUG: Shortcut created.
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!
DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open with Atom', 
command:'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe', type 'file', 
iconLocation:'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"'
DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom', 
command:'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe', type 'directory', 
iconLocation:'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"'
DEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom', 
command:'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe', type 'background', 
iconLocation:'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"'
DEBUG: Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'powershell', statements: '

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };

    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';

    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%1\"';

 Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"';;

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';

    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%1\"';

 Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"';;

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\background\shell\Atom' 
};

    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';

    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 
'HKCR:\directory\background\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%V\"';

 Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"';' 
DEBUG: Elevating Permissions and running C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy 
unrestricted -Command "& import-module -name  'C:\ProgramData\chocolatey\chocolateyinstall\helpers\chocolateyInstaller.psm1'; try{

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };

    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';

    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%1\"';

 Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"';;

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';

    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%1\"';

 Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"';;

    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};

    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\background\shell\Atom' 
};

    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';

    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 
'HKCR:\directory\background\shell\Atom\command' };

    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 
'C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe \"%V\"';

 Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value 
'"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\atom.exe"'; start-sleep 6;}catch{write-error 'That was not 
sucessful';start-sleep 8;throw;}". This may take awhile, depending on the statements.
Write-Error : [ERROR] Running C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe with 
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolatey\lib\Atom.0.150.0\
tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\
atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolatey\lib\Atom.
0.150.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.0.150.0\too
ls\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\background\shell\Atom' }
;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\directory\background\shell
\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolate
y\lib\Atom.0.150.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.
0.150.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1:46 char:5
+     Write-Error $errorMessage
+     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Running 'Move-BadInstall' for Atom version: '0.150.0', packageFolder:'C:\ProgramData\chocolatey\lib\Atom.0.150.0'
DEBUG: Moving bad package 'Atom v0.150.0' to 'C:\ProgramData\chocolatey\lib-bad'.
Write-Error : Package 'Atom v0.150.0' did not install successfully: [ERROR] Running C:\windows\System32\WindowsPowerShell\v1.0\power
shell.exe with 
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom')) { new-item -Path 'HKCR:\*\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name '(Default)'  -Value 'Open with Atom';
    if(!(test-path -LiteralPath 'HKCR:\*\shell\Atom\command')) { new-item -Path 'HKCR:\*\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolatey\lib\Atom.0.150.0\
tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\*\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.0.150.0\tools\Atom\
atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom')) { new-item -Path 'HKCR:\directory\shell\Atom' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\shell\Atom\command')) { new-item -Path 'HKCR:\directory\shell\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolatey\lib\Atom.
0.150.0\tools\Atom\atom.exe \"%1\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.0.150.0\too
ls\Atom\atom.exe"';;
    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom')) { new-item -Path 'HKCR:\directory\background\shell\Atom' }
;
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';
    if(!(test-path -LiteralPath 'HKCR:\directory\background\shell\Atom\command')) { new-item -Path 'HKCR:\directory\background\shell
\Atom\command' };
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom\command' -Name '(Default)' -Value 'C:\ProgramData\chocolate
y\lib\Atom.0.150.0\tools\Atom\atom.exe \"%V\"';
    Set-ItemProperty -LiteralPath 'HKCR:\directory\background\shell\Atom' -Name 'Icon'  -Value '"C:\ProgramData\chocolatey\lib\Atom.
0.150.0\tools\Atom\atom.exe"'; was not successful. Exit code was '121'.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:90 char:17
+                 Write-Error "Package `'$installedPackageName v$installedPackageV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

DEBUG: Evaluating NuGet output for line: 
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
DEBUG: Running 'Get-ConfigValue' with configValue:'ksMessage'
DEBUG: Running 'Get-UserConfigValue' with configValue:'ksMessage'
DEBUG: After checking the user config the value of 'ksMessage' is ''
DEBUG: Value not found in the user config file - checking the global config
DEBUG: Running 'Get-GlobalConfigValue' with configValue:'ksMessage'
DEBUG: After checking the global config the value of 'ksMessage' is 'true'

Did you know we are rewriting Chocolatey? The new
version is much more stable and secure.

Find out more and support the future of Chocolatey
at https://bit.ly/chocolateykickstarter

Disable this message by changing ksMessage to false in chocolatey.config.
afontaine commented 9 years ago

Interesting note: Update worked fine when NOT using ConEmu. I'm currently on version 141123 preview. @Stanzilla, try not using your console replacement, as it is based on ConEmu.

factormystic commented 9 years ago

It could be related to attempting to write to HKCR. The start menu lnk is per user, so why should the explorer context menus be system wide? Plus, writing to the HKCU equivalent doesn't require elevated privileges.

ferventcoder commented 9 years ago

I read somewhere recently that HKCR is an area for possible pain, and you should prefer writing to the HKCU/HKLM for the items you want to install.

Found it: http://stackoverflow.com/a/2069565/18475

Now, a quick word about which hive to use. Many file association examples online, including ones on MSDN, show these keys being set in HKEY_CLASSES_ROOT. I don't recommend doing this. That hive is a merged, virtual view of HKEY_LOCAL_MACHINE\Software\Classes (the system defaults) and HKEY_CURRENT_USER\Software\Classes (the per-user settings), and writes to any subkey in the hive are redirected to the same key in HKEY_LOCAL_MACHINE\Software\Classes. Now, there's no direct problem doing this, but you may run into this issue: If you write to HKCR (redirected to HKLM), and the user has specified the same keys with different values in HKCU, the HKCU values will take precedence. Therefore, your writes will succeed but you won't see any change, because HKEY_CURRENT_USER settings take precedence over HKEY_LOCAL_MACHINE settings.

ferventcoder commented 9 years ago

Of which I just noticed the person that answered the SO question was @factormystic .... ha!

kevinsawicki commented 9 years ago

Atom now has an installer & auto updater that should be used instead.

http://blog.atom.io/2014/12/10/a-windows-installer-and-updater.html