How did I pin Chrome to my Win7 TaskBar multiple times?

5,128

For Chrome you have the ability to create an extra individual shortcut to Chrome with your other profile on the taskbar. You can open Chrome (default icon) and switch to another profile. When doing so Chrome creates another instance, separate from the default one. You can pin that separate instance to the taskbar as a second icon. That icon is the shortcut to Chrome for that profile.

Steps to reproduce:

  • Open Chrome on the taskbar
  • Click your profile-name at the upper-right (left from the close/minimize-buttons)
  • Choose Switch person
  • Login with a different Google-account
  • Now Chrome had created a second icon on the taskbar
  • Right-click that icon and choose Pin this program to taskbar

The second shortcut is located in the ImplicitAppShortcuts-folder of the User pinned-folder.

(extra tip and off-topic: When clicking the orb (Windows-start) you can type shell: user pinned followed by enter to be taken directly to the correct folder. Here is a list of other interesting shell-shortcuts.)

Edit:
Of course these are not the only location where data is stored for the pinned application.

%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu 
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts

For example the ordering is not in these folders. The order of the pinned applications (and jump-list/right-click) is in the registry here:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\Favorites
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\FavoritesResolve

However this is a REG_BINARY value so changing the order or adding one isn't easily done in regedit.

(Some info here)

I haven't (yet) found a simple api to do this all.

Edit #2
Wow, it's actually quite easy to do with any program (without Windows API).

  • Create a shortcut to a program and edit the target to include something like /profile=1 or any other unique parameter for this program
  • It doesn't matter where you place the shortcut (it can be on the desktop) because it's temporary
  • Start the program via the shortcut. Because it has a unique start-target it gets a new icon in the taskbar.
  • Right-click the new icon and pin it to the taskbar
  • You can delete the icon from the desktop
Share:
5,128

Related videos on Youtube

LB--
Author by

LB--

C++ developer for Clickteam. My passions are programming, game design, and writing.

Updated on September 18, 2022

Comments

  • LB--
    LB-- over 1 year

    I have seen many many questions, including Pin same app multiple times in Windows 7, but they are all asking how to do something I have already done. I certainly did not use one of the solutions in the answers to the many questions I have examined, and I have no idea how I did this - that's what I am asking here. Trust me, this is a very different question.

    Normally, you can't pin the same application to your TaskBar multiple times in Windows 7, which is the whole point of the other questions. But let's take a look at my TaskBar:

    My Win7 TaskBar

    Huh, that's interesting - I have two Chrome shortcuts pinned and each one has a subicon corresponding to the icon of the user profile. It gets weirder.

    For most of the shortcuts, when I right click, right click again -> properties -> General tab, the location of the shortcut is in:

    • C:\Users\Nicholas\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

    But for the Chrome shortcuts, their locations are different:

    • C:\Users\Nicholas\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts\225bb61db2f318c1 (the one with my face)
    • C:\Users\Nicholas\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts\69639df789022856 (the one with my avatar)

    The targets of the shortcuts:

    • "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3" (the one with my face)
    • "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1" (the one with my avatar)

    Notice that the targets refer to the same executable, and only their arguments are different. A majority of the answers to other questions involve symlinking the executable so that the shortcuts would refer to different ones (completely ignoring applications that check their executable name, but I digress). These are not symlinks - they're the real deal.

    The icons are different too:

    • %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Profile 3\Google Profile.ico (the one with my face)
    • %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Profile 1\Google Profile.ico (the one with my avatar)

    Also, these shortcuts seem to be 'official' as they have their own independent jump lists when I right click on them:

    Face Jumplist Avatar Jumplist

    Not only that, but the windows for different profiles stay ungrouped and I am free to separate them from each other:

    enter image description here

    This is amazing, and very useful, but I don't have any idea how I accomplished it. It is very weird because many questions have been asked here on SO/SU and elsewhere on the web, and none of the solutions work like this. How did this happen, and can it be done with other applications too? I don't want to break whatever magic is making this work, so experimenting on my own computer is out of the question.

    This is the tree view of C:\Users\Nicholas\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned:

    enter image description here

    To put it short: What magic is this?

    • TheWanderer
      TheWanderer about 9 years
      I think this is just a feature of Chrome; if there are multiple accounts signed in, they will all appear in the Taskbar if Chrome is already pinned.
    • LB--
      LB-- about 9 years
      @Zacharee1 Nope, originally I just had the normal Chrome shortcut pinned and it would open whichever user had been logged in last. Then a few months ago I did something (rather than something being done for me) and ended up with this situation. I think Chrome created shortcuts on my desktop at one point but I don't remember. I'll experiment when I have access to another computer.
    • Rik
      Rik about 9 years
      It's easy to reproduce. In Chrome click your name in the title-bar all the way at the right (before the close-icons). Choose switch person and login as another Google-user. Now a new Window (Chrome instance) appears which you can pin (with right-click and "pin this program to taskbar") to the taskbar. It is independent from your other pinned Chrome-shortcut (and indeed... it is in ImplicitAppShortcuts).
    • LB--
      LB-- about 9 years
      @Rik ah, do you want to post an answer then?
    • Rik
      Rik about 9 years
      Ha... I thought you wanted to know how you could do this with any other program (which I don't know how to do). But to reproduce this with Chrome... I'll add it as answer.
    • LB--
      LB-- about 9 years
      @Rik yes, I do, but the answer is still helpful as an answer and not a comment.
  • LB--
    LB-- about 9 years
    No, this isn't my question at all. You are distracted by my preference of WinXP-style taskbar :p
  • LB--
    LB-- about 9 years
    Thanks! This explains what I did months ago, but I will wait a bit longer to see if anyone can give a more general answer. I have doubts though, I think that the application in question has to use special WinAPI calls to make the windows not merge. So if nobody gives a more general answer I'll mark this correct.
  • Rik
    Rik about 9 years
    @LB-- Yeah... I did find where Windows keeps some additional information about the taskbar. (See edited answer) But I haven't found a simle API for it (yet).
  • Rik
    Rik about 9 years
    @LB-- Wow, you don't even need a Windows API to create a second shortcut to the same program. I edited my answer (edit #2) to include the method to add a second shortcut.
  • LB--
    LB-- about 9 years
    wow! You should post that info to that other question too, that's really easy and useful! I didn't realize Windows was grouping by command line and not executable name.
  • LB--
    LB-- about 9 years
    Actually, what programs did you test Edit2 with? I can't get it to work. The windows always group. Also, msdn.microsoft.com/en-us/magazine/dd942846.aspx looks interesting
  • Rik
    Rik about 9 years
    @LB-- OpenOffice scalc.exe works too. Second shortcut with --param=2 after the target. You do need to pin them individual. First start the first, pin it, close it, start the second, pin it. I still can't do it with Thunderbird.
  • LB--
    LB-- about 9 years
    After doing some research, it looks like the taskbar groups are decided by a window's application ID. If left to automatic generation, it is based purely on the executable path. So a program has to use WinAPI to set its own or other windows' application IDs in order for grouping to be non-default. "7+ Taskbar Tweaker" is the only way around this. The other link I posted before mentions that the app ID can be set in a shortcut file but I am yet to find out how.
  • Rik
    Rik about 9 years
    @LB-- I did manage to get a second thunderbird icon in the taskbar (don't ask how :)) I changed some things in the shortcut (among others the icon) and it worked. But I couldn't reproduce it. Your research about the app id is spot on. Here is a link to a small app win7appid. It was mainly created to group different apps in one icon but I imagine it would also work the other way around (split same app into different icons). I haven't tested it (yet) though.
  • Daniel Hilgarth
    Daniel Hilgarth over 8 years
    Wow, you didn't even read half the question, did you? :)
  • Ryan
    Ryan over 7 years
    Your answer helped me in conjunction with these other answers: superuser.com/a/997535/74576 and superuser.com/a/377195/74576