I use several EV instances and have them all as (manually created) shortcuts on the desktop and in the start menu. I also call the instances through scripts via the command line.
If I first open EV via said shortcuts, when middle clicking EV in the taskbar I get the expected/desired behavior, which is to open a new window with the respective instance I middle clicked on. However, if I first start EV via the command line, when middle clicking, Windows opens the first instance it finds as a shortcut, either on the desktop or in the start menu. Probably alphabetically, but not sure. This seems to affect other apps as well (I've found this vscode issue to be informative: https://github.com/microsoft/vscode/issues/13905)
After some digging, I believe this is related to the app's AppUserModelID and System.AppUserModel.RelaunchCommand:
https://learn.microsoft.com/en-us/windo ... ell/appids
https://learn.microsoft.com/en-us/windo ... nchcommand
Those shortcuts that are created in the start menu(manually, in my case) get an auto generated AppUserModelID, which, if you have multiple instances in the start menu, can be seen by running this in powershell, which will show said info for all shortcuts present:
Code: Select all
Get-StartApps | Format-Table
Perhaps if we could set the AppUserModelID for each instance?
Thank you for your patience and please excuse my speculations, if they are unfounded.