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

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

Open

Description

@shardakov

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

Activity

  1. anamnavi commented on Jun 18, 2021

    @anamnavi
    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

  2. shardakov commented on Jun 21, 2021

    @shardakov
    Author

    Anam Navied (@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.

  3. anamnavi commented on Jun 24, 2021

    @anamnavi
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions