Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Uninstall-Package don't uninstall Microsoft Office 365 #654

Open
shardakov opened this issue Jun 17, 2021 · 3 comments
Open

Uninstall-Package don't uninstall Microsoft Office 365 #654

shardakov opened this issue Jun 17, 2021 · 3 comments

Comments

@shardakov
Copy link

shardakov commented Jun 17, 2021

Steps to reproduce

I trying to uninstall "Microsoft Office 365 - ru-ru" via powershell cmdlet Uninstall-Package. I used command like:

"uninstall-Package -Name "Microsoft Office 365 - ru-ru" -RequiredVersion 16.0.12527.20482",
"Get-Package -Name "Microsoft Office 365 - ru-ru" -Version "16.0.12527.20482" -ProviderName Programs | Uninstall-Package -Confirm:$false",
"Get-Package -Name "Microsoft Office 365 - ru-ru" -ProviderName Programs | Uninstall-Package",
"Get-Package -Name "Microsoft Office 365*" | Uninstall-Package".

Expected behavior

"Microsoft Office 365 - ru-ru" will be uninstalled

Actual behavior

But I didn't get any response or error on this command. Nothing.

Environment data

> $PSVersionTable
Major Minor Build Revision

5 1 19041 1023
> Get-Module -ListAvailable PowerShellGet,PackageManagement

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-Pa...
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Modul...
> Get-PackageProvider -ListAvailable

Name                     Version          DynamicOptions
----                     -------          --------------
msi                      3.0.0.0          AdditionalArguments
msu                      3.0.0.0
NuGet                    2.8.5.208        Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOn...
PowerShellGet            1.0.0.1          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherChec...
Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent

@anamnavi
Copy link
Member

Thanks @shardakov, can you run: "Get-Package -Name "Microsoft Office 365*" and share the output? This will allow us to see if you have that packae before attempting to uninstall

@shardakov
Copy link
Author

shardakov commented Jun 21, 2021

@anamnavi Sorry! I made a mistake. The correct command is "Get-Package-Name" Microsoft 365*"". And then I get the following output:

Name Version Source ProviderName


Microsoft 365 - ru-ru 16.0.14026.20270 Programs

But the error remains the same.

@anamnavi
Copy link
Member

@shardakov it seems this is a PackageManagement issue, not a PowerShellGet one so we'll transfer this issue to the appropriate repository.

Can you try updating your PackageManagement version:
Install-Package PackageManagement -ProviderName NuGet

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

No branches or pull requests

2 participants