Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- download and install pwsh v7.4.3 using the MSI installer from GitHub ( PowerShell-7.4.4-win-x64.msi )
- download the pwsh v7.4.3 installer from Microsoft Catalog... install it
https://www.catalog.update.microsoft.com/Search.aspx?q=powershell%20v7*
- check the installed programs list in appwiz.cpl (filter for powershell)
- download and install the pwsh MSI installer version v7.4.4 that was just released yesterday on GitHub
- 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)