{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/625","labels_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/625/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/625/events","html_url":"https://github.com/chocolatey/chocolatey/issues/625","id":50220826,"number":625,"title":"Having issues with packages that run Start-ChocolateyProcessAsAdmin","user":{"login":"cobrabr","id":724969,"avatar_url":"https://avatars.githubusercontent.com/u/724969?v=3","gravatar_id":"","url":"https://api.github.com/users/cobrabr","html_url":"https://github.com/cobrabr","followers_url":"https://api.github.com/users/cobrabr/followers","following_url":"https://api.github.com/users/cobrabr/following{/other_user}","gists_url":"https://api.github.com/users/cobrabr/gists{/gist_id}","starred_url":"https://api.github.com/users/cobrabr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobrabr/subscriptions","organizations_url":"https://api.github.com/users/cobrabr/orgs","repos_url":"https://api.github.com/users/cobrabr/repos","events_url":"https://api.github.com/users/cobrabr/events{/privacy}","received_events_url":"https://api.github.com/users/cobrabr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-11-26T19:57:41Z","updated_at":"2015-02-11T20:14:52Z","closed_at":null,"body":"Hello,\r\n\r\nI tried updating a bunch of packages today, and apparently all that use Start-ChocolateyProcessAsAdmin fail. Examples include Oracle VirtualBox, CCleaner and Atom. I've updated Chocolatey to the latest version and tried rebooting the computer, but to no avail.\r\n\r\nHere is the log for `choco update atom -debug`:\r\n```\r\nDEBUG: Running 'Append-InstallLog' with chocoInstallLog:''\r\nDEBUG: Arguments: $command = 'update'|$force=False\r\n|$prerelease=False|$packageNames='atom'\r\n|$source=''\r\n|$version=''|$allVersions=False\r\n|$overrideArguments=False|$InstallArguments=''\r\n|$localonly=False|$verbosity=False|$debug=True|$quiet=False\r\n|$name=''|$ignoreDependencies=False|$forceX86=False\r\n|$packageParameters=''\r\n|PowerShellVersion=4.0|OSVersion=6.1.7601.65536\r\nDEBUG: Current Security Protocol - Ssl3, Tls\r\nDEBUG: Running 'Chocolatey-Update' for 'atom' with source:''.\r\nDEBUG: Running 'Chocolatey-Version' for atom with source:''.\r\nDEBUG: Getting local packages based on all or passed in package name\r\nDEBUG: Running 'Chocolatey-List' with selector: 'atom', source:'C:\\ProgramData\\Chocolatey\\lib'\r\nDEBUG: Showing prerelease versions of packages\r\nDEBUG: Executing command [\"C:\\ProgramData\\Chocolatey\\chocolateyinstall\\nuget.exe\" list \"atom\" -Prerelease -NonInteractive -Source\r\n\"C:\\ProgramData\\Chocolatey\\lib\"]\r\nDEBUG: Command [\"C:\\ProgramData\\Chocolatey\\chocolateyinstall\\nuget.exe\" list \"atom\" -Prerelease -NonInteractive -Source\r\n\"C:\\ProgramData\\Chocolatey\\lib\"] exited with '0'.\r\nDEBUG: Getting atom from returned local list\r\nDEBUG: Running 'Chocolatey-List' with selector: 'Atom', source:''\r\nDEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: After checking the user config the value of 'useNuGetForSources' is ''\r\nDEBUG: Value not found in the user config file - checking the global config\r\nDEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'\r\nDEBUG: Running 'Get-UserConfigValue' with configValue:'sources'\r\nDEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'\r\nDEBUG: Using global sources\r\nDEBUG: Using '-Source \"https://chocolatey.org/api/v2/;\"' as the source arguments\r\nDEBUG: Executing command [\"C:\\ProgramData\\Chocolatey\\chocolateyinstall\\nuget.exe\" list \"Atom\" -NonInteractive -Source\r\n\"https://chocolatey.org/api/v2/;\"]\r\nDEBUG: Command [\"C:\\ProgramData\\Chocolatey\\chocolateyinstall\\nuget.exe\" list \"Atom\" -NonInteractive -Source \"https://chocolatey.org/api/v2/;\"] exited with '0'.\r\nDEBUG: Getting Atom from returned remote list\r\nDEBUG: Long version of 0.150.0 is '000000000000.000000000150.000000000000'\r\nDEBUG: Long version of 0.127.0 is '000000000000.000000000127.000000000000'\r\nUpdating Atom from 0.127.0 to 0.150.0\r\nDEBUG: Running 'Chocolatey-NuGet' for Atom with source:''. Force? False\r\nChocolatey (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\".\r\nDEBUG: Running 'Run-NuGet' for Atom with source: '', version:''\r\nDEBUG: ___ NuGet ____\r\nDEBUG: Running 'Get-ConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: After checking the user config the value of 'useNuGetForSources' is ''\r\nDEBUG: Value not found in the user config file - checking the global config\r\nDEBUG: Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'\r\nDEBUG: After checking the global config the value of 'useNuGetForSources' is 'false'\r\nDEBUG: Running 'Get-UserConfigValue' with configValue:'sources'\r\nDEBUG: Running 'Get-GlobalConfigValue' with configValue:'sources'\r\nDEBUG: Using global sources\r\nDEBUG: Using '-Source \"https://chocolatey.org/api/v2/;\"' as the source arguments\r\nDEBUG: Calling 'C:\\ProgramData\\Chocolatey\\chocolateyinstall\\nuget.exe' install Atom -OutputDirectory \"C:\\ProgramData\\Chocolatey\\lib\" -Source\r\n\"https://chocolatey.org/api/v2/;\" -NonInteractive -NoCache\r\nDEBUG: Installing 'Atom 0.150.0'.\r\nSuccessfully installed 'Atom 0.150.0'.\r\nDEBUG: Evaluating NuGet output for line: Installing 'Atom 0.150.0'.\r\nDEBUG: Evaluating NuGet output for line: Successfully installed 'Atom 0.150.0'.\r\nDEBUG: NuGet installed Atom. If we are ignoring dependencies (False) then we will clean this up.\r\n\r\nAtom v0.150.0\r\nDEBUG: Running 'Delete-ExistingErrorLog' for Atom\r\nDEBUG: Looking for failure log at 'C:\\TEMP\\chocolatey\\Atom\\failure.log'\r\nDEBUG: Running 'Run-ChocolateyPS1' for Atom with packageFolder:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0', action: 'install'\r\nDEBUG:   __ PowerShell install (chocolateyinstall.ps1) __\r\nDEBUG:   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'\r\nDEBUG: Running 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\chocolateyInstall.ps1'\r\nDEBUG: Running 'Install-ChocolateyZipPackage' for Atom with url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip',\r\nunzipLocation: 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools', url64bit:\r\n'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', specificFolder: '', checksum: '', checksumType: '', checksum64: '',\r\nchecksumType64: ''\r\nDEBUG: Running 'Get-ChocolateyWebFile' for Atom with url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip',\r\nfileFullPath:'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip', url64bit:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', checksum: '', checksumType: '', checksum64: '', checksumType64: ''\r\nDEBUG: Running 'Get-ProcessorBits'\r\nDEBUG: CPU is 64 bit\r\nDEBUG: Setting url to 'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip' and bitPackage to 64\r\nDEBUG: Running 'Get-WebHeaders' with url:'https://github.com/atom/atom/releases/download/v0.150.0/atom-windows.zip', userAgent: 'chocolatey command\r\nline'\r\nDEBUG: Setting the UserAgent to 'chocolatey command line'\r\nDEBUG: Request Headers:\r\nDEBUG:   'Accept':'*/*'\r\nDEBUG:   'User-Agent':'chocolatey command line'\r\nDEBUG: Response Headers:\r\nDEBUG:   'x-amz-id-2':'Ko7mATqJa7dnWSKclROqP9RV02DyP0ONIxxkt5optFE6/nlGjd1U5GWgaVVMos8r'\r\nDEBUG:   'x-amz-request-id':'9467462CF6ADF6DB'\r\nDEBUG:   'x-amz-meta-surrogate-control':'max-age=31557600'\r\nDEBUG:   'x-amz-meta-surrogate-key':'repository-3228505 user-3697332'\r\nDEBUG:   'Content-Disposition':'attachment; filename=atom-windows.zip'\r\nDEBUG:   'Accept-Ranges':'bytes'\r\nDEBUG:   'Content-Length':'70043976'\r\nDEBUG:   'Cache-Control':'max-age=31557600'\r\nDEBUG:   'Content-Type':'application/octet-stream'\r\nDEBUG:   'Date':'Wed, 26 Nov 2014 19:40:55 GMT'\r\nDEBUG:   'ETag':'\"b4b2e352dd83071d8b55b53f7daa2d19\"'\r\nDEBUG:   'Last-Modified':'Thu, 20 Nov 2014 20:29:33 GMT'\r\nDEBUG:   'Server':'AmazonS3'\r\nDEBUG: Atom's requested file has already been downloaded. Using cached copy at\r\n  'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip'.\r\nDEBUG: Checking that 'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip' is the size we expect it to be.\r\nDEBUG: Verifying package provided checksum of '' for 'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip'.\r\nDEBUG: Running 'Get-CheckSumValid' with file:'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip', checksum: '', checksumType: ''\r\nDEBUG: Running 'Get-ChocolateyUnzip' with fileFullPath:'C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip'', destination:\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools', specificFolder: '`, packageName: 'Atom'\r\nExtracting C:\\TEMP\\chocolatey\\Atom\\AtomInstall.zip to C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools...\r\nDEBUG: wrapping 7za invocation with Write-FileUpdateLog\r\nDEBUG: Running 'Write-FileUpdateLog' with logFilePath:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\AtomInstall.zip.txt'',\r\nlocationToMonitor:C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools, Operation: '\r\n    param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef)\r\n    $process = Start-Process $7zip -ArgumentList \"x -o`\"$destination`\" -y `\"$fileFullPath`\"\" -Wait -WindowStyle Hidden -PassThru\r\n    # this is here for specific cases in Posh v3 where -Wait is not honored\r\n    try { if (!($process.HasExited)) { Wait-Process -Id $process.Id } } catch { }\r\n\r\n    $exitCodeRef.Value = $process.ExitCode\r\n  '\r\nDEBUG: Tracking current state of 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools'\r\nDEBUG: 7za exit code: 0\r\nC:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\r\nAtom has finished successfully! The chocolatey gods have answered your request!\r\nDEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: 'C:\\Users\\Luciano.Paciornick\\Desktop\\Atom.lnk', TargetPath:\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe', WorkingDirectory: '', Arguments: '', IconLocation: '', Description: ''\r\nDEBUG: Creating Shortcut...\r\nDEBUG: Shortcut created.\r\nInstall-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!\r\n\r\n\r\n    Directory: C:\\Users\\Luciano.Paciornick\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\r\n\r\n\r\nMode                LastWriteTime     Length Name\r\n----                -------------     ------ ----\r\nd----        11/26/2014     12:20            GitHub, Inc\r\nDEBUG: Running 'Install-ChocolateyShortcut' with parameters ShortcutFilePath: 'C:\\Users\\Luciano.Paciornick\\AppData\\Roaming\\Microsoft\\Windows\\Start\r\nMenu\\Programs\\GitHub, Inc\\Atom.lnk', TargetPath: 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe', WorkingDirectory: '', Arguments:\r\n'', IconLocation: '', Description: ''\r\nDEBUG: Creating Shortcut...\r\nDEBUG: Shortcut created.\r\nInstall-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!\r\nDEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open with Atom',\r\ncommand:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe', type 'file',\r\niconLocation:'\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"'\r\nDEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom',\r\ncommand:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe', type 'directory',\r\niconLocation:'\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"'\r\nDEBUG: Running 'Install-ChocolateyExplorerMenuItem' with menuKey:'Atom', menuLabel:'Open Folder with Atom',\r\ncommand:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe', type 'background',\r\niconLocation:'\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"'\r\nDEBUG: Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'powershell', statements: '\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom')) { new-item -Path 'HKCR:\\*\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name '(Default)'  -Value 'Open with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\*\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%V\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name 'Icon'  -Value\r\n'\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';'\r\nDEBUG: Elevating Permissions and running C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command\r\n\"& import-module -name  'C:\\ProgramData\\Chocolatey\\chocolateyinstall\\helpers\\chocolateyInstaller.psm1'; try{\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom')) { new-item -Path 'HKCR:\\*\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name '(Default)'  -Value 'Open with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\*\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command' -Name '(Default)' -Value\r\n'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%V\\\"';\r\n Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name 'Icon'  -Value\r\n'\"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.\r\nWrite-Error : [ERROR] Running C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe with\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom')) { new-item -Path 'HKCR:\\*\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name '(Default)'  -Value 'Open with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\*\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom\\command' -Name '(Default)' -Value 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command' -Name '(Default)' -Value 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom\\command' };\r\n    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\\\"';\r\n    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'.\r\nAt C:\\ProgramData\\Chocolatey\\chocolateyinstall\\helpers\\functions\\Start-ChocolateyProcessAsAdmin.ps1:46 char:5\r\n+     Write-Error $errorMessage\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException\r\n    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error\r\n\r\nDEBUG: Running 'Move-BadInstall' for Atom version: '0.150.0', packageFolder:'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0'\r\nWrite-Error : Could not move bad package Atom from 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0' to 'C:\\ProgramData\\Chocolatey\\lib-bad': Exception calling \"Delete\" with \"2\" argument(s): \"The directory is not empty.\r\n\"\r\nAt C:\\ProgramData\\Chocolatey\\chocolateyinstall\\functions\\Move-BadInstall.ps1:21 char:5\r\n+     Write-Error \"Could not move bad package $packageName from `'$packageFolder`' ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException\r\n    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error\r\n\r\nWrite-Error : Package 'Atom v0.150.0' did not install successfully: [ERROR] Running C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe with\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom')) { new-item -Path 'HKCR:\\*\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name '(Default)'  -Value 'Open with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\*\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\*\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom\\command' -Name '(Default)' -Value 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\*\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\shell\\Atom\\command' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom\\command' -Name '(Default)' -Value 'C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe \\\"%1\\\"';\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\shell\\Atom' -Name 'Icon'  -Value '\"C:\\ProgramData\\Chocolatey\\lib\\Atom.0.150.0\\tools\\Atom\\atom.exe\"';;\r\n    if( -not (Test-Path -path HKCR:) ) {New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root};\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom' };\r\n    Set-ItemProperty -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom' -Name '(Default)'  -Value 'Open Folder with Atom';\r\n    if(!(test-path -LiteralPath 'HKCR:\\directory\\background\\shell\\Atom\\command')) { new-item -Path 'HKCR:\\directory\\background\\shell\\Atom\\command' };\r\n    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\\\"';\r\n    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'.\r\nAt C:\\ProgramData\\Chocolatey\\chocolateyinstall\\functions\\Chocolatey-NuGet.ps1:90 char:17\r\n+                 Write-Error \"Package `'$installedPackageName v$installedPackageV ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException\r\n    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error\r\n\r\nDEBUG: Evaluating NuGet output for line:\r\nFinished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.\r\nDEBUG: Running 'Get-ConfigValue' with configValue:'ksMessage'\r\nDEBUG: Running 'Get-UserConfigValue' with configValue:'ksMessage'\r\nDEBUG: After checking the user config the value of 'ksMessage' is ''\r\nDEBUG: Value not found in the user config file - checking the global config\r\nDEBUG: Running 'Get-GlobalConfigValue' with configValue:'ksMessage'\r\nDEBUG: After checking the global config the value of 'ksMessage' is 'true'\r\n```\r\n\r\nRegards,\r\nLuciano."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/comments/73955796","html_url":"https://github.com/chocolatey/chocolatey/issues/625#issuecomment-73955796","issue_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/625","id":73955796,"user":{"login":"cobrabr","id":724969,"avatar_url":"https://avatars.githubusercontent.com/u/724969?v=3","gravatar_id":"","url":"https://api.github.com/users/cobrabr","html_url":"https://github.com/cobrabr","followers_url":"https://api.github.com/users/cobrabr/followers","following_url":"https://api.github.com/users/cobrabr/following{/other_user}","gists_url":"https://api.github.com/users/cobrabr/gists{/gist_id}","starred_url":"https://api.github.com/users/cobrabr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobrabr/subscriptions","organizations_url":"https://api.github.com/users/cobrabr/orgs","repos_url":"https://api.github.com/users/cobrabr/repos","events_url":"https://api.github.com/users/cobrabr/events{/privacy}","received_events_url":"https://api.github.com/users/cobrabr/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T20:14:52Z","updated_at":"2015-02-11T20:14:52Z","body":"I was able to install Nuget Package Explorer with Chocolatey 0.9.9-rc5. I updated the other packages I was having issue with manually, but I will try again soon and I'll keep you posted."}}