OneGet / chocolateyprototype

Prototype version of the chocolatey provider
0 stars 3 forks source link

Can't uninstall the provider #3

Closed phw closed 9 years ago

phw commented 9 years ago

After running get-packageprovider -name chocolatey I ended up having a chocolatey provider, which seems to be non funtional due to #2 .

PS C:\WINDOWS\system32> Get-PackageProvider

Name                     Version          DynamicOptions
----                     -------          --------------
msu                      10.0.10240.16384 {}
msi                      10.0.10240.16384 {AdditionalArguments}
Programs                 10.0.10240.16384 {IncludeWindowsInstaller, IncludeSystemComponent}
Chocolatey               2.8.5.130        {SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86...}
NuGet                    2.8.5.127        {Destination, SkipDependencies, ContinueOnFailure, ExcludeVersion...}
PSModule                 1.0.0.0          {PackageManagementProvider, Location, InstallUpdate, InstallationPolicy...}

Fine so far, but I have not yet found a way to completely remove the provider again. On https://github.com/OneGet/oneget/wiki/cmdlets I see only Unregister-PackageSource, but no way to remove the provider itself. Can this be done manually?

xumins commented 9 years ago

Hi Philipp, For removing the provider, you can directly remove it from the following folders that contains the provider binaries: · If the user is running Windows PowerShell with elevated rights: $env:PROGRAMFILES\PackageManagement\ProviderAssemblies · If the user is not running with elevated rights: $env:LOCALAPPDATA\PackageManagement\ProviderAssemblies Hope this helps. Xumin

From: Philipp Wolfer [mailto:notifications@github.com] Sent: Thursday, August 13, 2015 2:25 AM To: OneGet/chocolateyprototype chocolateyprototype@noreply.github.com Subject: [chocolateyprototype] Can't uninstall the provider (#3)

After running get-packageprovider -name chocolatey I ended up having a chocolatey provider, which seems to be non funtional due to #2https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fOneGet%2fchocolateyprototype%2fissues%2f2&data=01%7c01%7cxumins%40microsoft.com%7c2647d276a0034dd8821808d2a3c121bd%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=HPjn6fkkgWjc5Qf5%2b8dWpgLddpaS3GAiBFvTFXJd%2fkg%3d .

PS C:\WINDOWS\system32> Get-PackageProvider

Name Version DynamicOptions


msu 10.0.10240.16384 {}

msi 10.0.10240.16384 {AdditionalArguments}

Programs 10.0.10240.16384 {IncludeWindowsInstaller, IncludeSystemComponent}

Chocolatey 2.8.5.130 {SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86...}

NuGet 2.8.5.127 {Destination, SkipDependencies, ContinueOnFailure, ExcludeVersion...}

PSModule 1.0.0.0 {PackageManagementProvider, Location, InstallUpdate, InstallationPolicy...}

Fine so far, but I have not yet found a way to completely remove the provider again. On https://github.com/OneGet/oneget/wiki/cmdletshttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fOneGet%2foneget%2fwiki%2fcmdlets&data=01%7c01%7cxumins%40microsoft.com%7c2647d276a0034dd8821808d2a3c121bd%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=MtPHQ%2b5rTdAR2Fca9ET%2f0SNn6col%2b8kK4j%2fSgWkLsns%3d I see only Unregister-PackageSource, but no way to remove the provider itself. Can this be done manually?

— Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fOneGet%2fchocolateyprototype%2fissues%2f3&data=01%7c01%7cxumins%40microsoft.com%7c2647d276a0034dd8821808d2a3c121bd%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=oDhgfw7H5iM54bbPsFC8iGPZe5mBvZ4qugAEKLsLXsc%3d.

phw commented 9 years ago

Thanks a lot for the help, that worked :)