Skip to content

duplicate uninstall entries for PWSH in add/remove programs when MSI is used together with EXE installer from Microsoft Update Catalog #24080

Open
@R-Adrian

Description

@R-Adrian

Prerequisites

Steps to reproduce

  1. download and install pwsh v7.4.3 using the MSI installer from GitHub ( PowerShell-7.4.4-win-x64.msi )
  2. download the pwsh v7.4.3 installer from Microsoft Catalog... install it
    https://www.catalog.update.microsoft.com/Search.aspx?q=powershell%20v7*

https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/updt/2024/07/powershell-7.4.3-win-x64_54091441f1ce659f9e6e493fca74c359265d819f.exe

  1. check the installed programs list in appwiz.cpl (filter for powershell)
  2. download and install the pwsh MSI installer version v7.4.4 that was just released yesterday on GitHub
  3. check appwiz.cpl again

Expected behavior

  • the MSI installer should detect when the EXE version was previously used to install pwsh and abort the install or cleanup the EXE installer and its remains from C:\Windows\Installer or C:\ProgramData\Package Cache\

  • the EXE installer should detect when the MSI was previously used to install pwsh and either abort the install or cleanup the MSI entries and their remains from C:\Windows\Installer or C:\ProgramData\Package Cache\

Actual behavior

both the MSI and the EXE installers for pwsh v7 can be installed at the same time, different versions even, which can lead to weird breakage because they both put their files in the same place: C:\Program Files\PowerShell\7

Error details

(installer, not quite pwsh error)

Environment data

(this is an installer logic error, the environment is not really relevant)

Visuals

image

image

Metadata

Metadata

Assignees

Labels

Area-Maintainers-Buildspecific to affecting the buildNeeds-TriageThe issue is new and needs to be triaged by a work group.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions