winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Side-by-Side installations

Open doterik opened this issue 1 year ago • 9 comments

Description of the new feature / enhancement

When there are side-by-side installations, the lower version still shows 'upgrades available'.

winget upgrade
Name                                          Id                                  Version Available Source
----------------------------------------------------------------------------------------------------------
Microsoft SQL Server Management Studio - 19.3 Microsoft.SQLServerManagementStudio 19.3    20.0      winget
1 upgrades available.

I have both versions installed:

winget list
Name                                          Id                                     Version      Available Source
------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server Management Studio - 20.0 Microsoft.SQLServerManagementStudio    20.0                   winget
Microsoft SQL Server Management Studio - 19.3 Microsoft.SQLServerManagementStudio    19.3         20.0      winget
. . .

Proposed technical implementation details

If the suggested upgrade is installed, there are no upgrades available.

If there will be a 19.4+ version, then it should be flagged.

doterik avatar Mar 20 '24 11:03 doterik

Sometimes, software packages which can be installed side-by-side are put into separate PacakgeIdentifiers, to help communicate this capability. Should this be done here?

stephengillie avatar Mar 20 '24 14:03 stephengillie

@stephengillie

Sometimes, software packages which can be installed side-by-side are put into separate PacakgeIdentifiers, to help communicate this capability. Should this be done here?

I don't know that much about PacakgeIdentifiers but you can't upgrade version 19 to version 20, they will always install as a new application (side-by-side if you have an older version installed).

Installing SSMS 20 doesn't upgrade or replace SSMS 19.x and earlier versions.

doterik avatar Mar 20 '24 18:03 doterik

@stephengillie It's a bit annoying to always get the notification that there are upgrades available. Also, if you run the command winget upgrade --all, you'll end up in a constant loop.

On the other hand, I like to be informed that there is a newer version than 19, but once I have installed version 20, I don't want version 19 (if I decide to keep that version for a while) to remind me again because version 20 is now installed...

doterik avatar Mar 20 '24 18:03 doterik

@doterik - Is there any user information that would be lost if version 19 would be uninstalled before version 20 gets installed?

Trenly avatar Mar 20 '24 21:03 Trenly

@Trenly Yes, there are. If you use a good uninstaller your user preferences in the IDE will be lost (SQL servers to connect to, window sizes, and such):

image

Databases, scripts et cetera are kept intact and not removed or deleted. Much the same if you uninstall Notepad++, or whatever, then you have to configure your user preferences again (no files will disappear). But, if you first install the new version of SSMS you get a question to copy/migrate your old configuration. Nota bene, your databases, projects, and scripts will always remain intact.

doterik avatar Mar 20 '24 22:03 doterik

We are currently working on enhancements for side-by-side scenarios in the preview branch. It will be under an experimental feature, but I believe it will do what you're looking for when we release it.

denelon avatar Mar 20 '24 22:03 denelon

@denelon That sounds very promising... Is it possible to download and try the preview? Without compiling, that is... 😁

doterik avatar Mar 20 '24 22:03 doterik

We're working to get another WinGet 1.8-preview out with the experimental feature available.

denelon avatar Mar 25 '24 17:03 denelon

We're working to get another WinGet 1.8-preview out with the experimental feature available.

The experimental feature is now available in the latest pre-release

Trenly avatar Apr 06 '24 14:04 Trenly