Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants