Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Can't install chocolately when the zip shell extensions are disabled #297

Closed
tmyroadctfig opened this issue Jun 7, 2013 · 2 comments
Closed

Comments

@tmyroadctfig
Copy link

I've killed off the default zip shell support in my copy of Windows 7 because I find it annoying and slow compared to 7zip. Unfortunately it seems to have killed the chocolately install along with it:

C:\Windows\system32>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
Downloading http://chocolatey.org/api/v2/package/chocolatey/ to C:\Users\luke\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Extracting C:\Users\luke\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to ...
Exception calling "NameSpace" with "1" argument(s): "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
At line:34 char:42
+ $zipPackage = $shellApplication.NameSpace <<<< ($file)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation

You cannot call a method on a null-valued expression.
At line:36 char:46
+ $destinationFolder.CopyHere($zipPackage.Items <<<< (),0x10)
    + CategoryInfo          : InvalidOperation: (Items:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Installing chocolatey on this machine
The term 'C:\Users\luke\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall.ps1' 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.
At line:43 char:2
+ & <<<<  $chocInstallPS1
    + CategoryInfo          : ObjectNotFound: (C:\Users\luke\A...ateyInstall.p
   s1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Ensuring chocolatey commands are on the path

It seems quite similar to #59

@tmyroadctfig
Copy link
Author

This also seems to break installing new packages. I think I initially killed off the zip integration via:

regsvr32 /u zipfldr.dll

and now that I've restored it running:

cmd /c assoc .zip=CompressedFolder

everything seems to be working again.

@ferventcoder
Copy link
Contributor

This is in 97b94b2 and 5a9d396

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants