Answered by:
Error while using install-package : Destination Path not set.

Question
-
Hi,
I tried using install-package but I keep getting this error:
install-package -provider bootstrap chocolatey
install-package : Destination Path not set.
At line:1 char:1
+ install-package –provider bootstrap chocolatey+ FullyQualifiedErrorId : DestinationPathNotSet,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
I also got it with:
Get-PackageProvider : Destination Path not set.
At line:1 char:1
+ Get-PackageProvider -name chocolatey
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (https://oneget....package.swidtag:String) [Get-PackageProvider], Exce
ption
+ FullyQualifiedErrorId : DestinationPathNotSet,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageProviderAny Ideas why?
Sunday, October 14, 2018 10:01 AM
Answers
-
Ok I know where I did wrong :D I change the Program Files directory in registry.
Now after copying PowerShell folder to this new directory everything works fine.
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Monday, October 15, 2018 1:41 AM
- Marked as answer by Whooof Tuesday, October 16, 2018 8:35 PM
Sunday, October 14, 2018 12:59 PM
All replies
-
What package from what provider would you like to install?
Live long and prosper!
(79,108,97,102|%{[char]$_})-join''
Sunday, October 14, 2018 12:10 PM -
Ok I've changed language of my System to Polish and now it doesn't work at all
FullyQualifiedErrorId : CommandNotFoundException
Sunday, October 14, 2018 12:48 PM -
Ok I know where I did wrong :D I change the Program Files directory in registry.
Now after copying PowerShell folder to this new directory everything works fine.
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Monday, October 15, 2018 1:41 AM
- Marked as answer by Whooof Tuesday, October 16, 2018 8:35 PM
Sunday, October 14, 2018 12:59 PM -
Hi,
Thanks for your posting here and sharing the resolution in the forum as it would be helpful to anyone who encounters similar issues.
Best Regards,
Lee
Just do it.
Monday, October 15, 2018 1:43 AM