atom / chocolatey

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

Installing Atom on network Win 7 PC fails #22

Closed lukewhitt closed 10 years ago

lukewhitt commented 10 years ago

Attempting to install Atom on my Win 7 work machine. This is on my employers Domain but I have local administrator account and my network account has admin rights over the box (including this info in case it is relevant).

Grabbed the latest copy of Chocolatey today (2014-July-11) and installed using cinst Atom -force -debug and here is a snippet of the output leading to the failure (can include the entire output if desired):

DEBUG: Running 'Write-FileUpdateLog' with
logFilePath:'C:\ProgramData\chocolatey\lib\Atom.0.113.0\AtomInstall.zip.txt'',
locationToMonitor:C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools, Operation:
'
    param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef)
    $p = Start-Process $7zip -ArgumentList "x -o``"$destination`" -y
`"$fileFullPath`"" -Wait -WindowStyle Hidden -PassThru
    $exitCodeRef.Value = $p.ExitCode
  '
DEBUG: Tracking current state of
'C:\ProgramData\chocolatey\lib\Atom.0.113.0\tools'
Write-Error : Atom did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] This command cannot be run due to the error: The system cannot find the
 file specified.
-----------------------
At C:\ProgramData\chocolatey\chocolateyinstall\helpers\functions\Write-Chocolat
eyFailure.ps1:30 char:3
+   Write-Error $errorMessage
+   ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
   tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
   n,Write-Error

DEBUG: Running 'Move-BadInstall' for Atom version: '0.113.0',
packageFolder:'C:\ProgramData\chocolatey\lib\Atom.0.113.0'
DEBUG: Moving bad package 'Atom v0.113.0' to
'C:\ProgramData\chocolatey\lib-bad'.
Write-Error : Package 'Atom v0.113.0' did not install successfully: This comman
d cannot be run due to the error: The system cannot find the file specified.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:9
0 char:17
+                 Write-Error "Package `'$installedPackageName v$installedPacka
geV ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep

tion

The term 'true' is not recognized as the name of a cmdlet, function, script file , or operable program. Check the spelling of the name, or if a path was included , verify that the path is correct and try again. Command 'install' failed (sometimes this indicates a partial failure). Additiona l info/packages: Atom DEBUG: Exiting with non-zero exit code.`

kevinsawicki commented 10 years ago

Could you try restarting your command prompt or power shell window and run cinst Atom again?

MattUebel commented 10 years ago

I installed chocolatey and then attempted to cinst atom from the same administrative cmd prompt. I got the same above error. I opened an administrative powershell window and was able to cinst atom without error.

lukewhitt commented 10 years ago

Restarting the command prompt and running cinst Atom again worked for me. Thanks!