title: How do I associate my application with a pinned program on the Windows 7 taskbar?
body: <p>We have an application, let's call it <code>MyApp</code>. On installation, we create a desktop icon for MyApp, which basically calls <code>MyLauncher.exe /launch MyApp.exe</code>. MyLauncher does some useful stuff (check for updates, etc.), and then starts MyApp.</p>
  
  <p><img src="https://i.stack.imgur.com/qnbZc.png" alt="MyApp on the Desktop"></p>
  
  <p>A user with Windows 7 might want to pin it to the task bar (i.e., right mouse button on the desktop icon, "Pin to Taskbar"):</p>
  
  <p><img src="https://i.stack.imgur.com/LCrGv.png" alt="MyApp on the Taskbar"></p>
  
  <p>However, since the shortcut points to MyLauncher, the following happens when the user starts the application (either with the desktop icon or the taskbar icon): MyLauncher does its stuff, and, afterwards, it starts MyApp. On the taskbar, the result is as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/URksV.png" alt="MyApp twice on the Taskbar"></p>
  
  <p><strong>I understand why this happens.</strong> Since MyLauncher starts MyApp, the Windows 7 taskbar sees them as two different applications.</p>
  
  <p>Obviously, my question is: <strong>As the developer of MyLauncher and MyApp, can I do something about this?</strong> I'd like the Windows 7 taskbar to "associate" all instances of <code>MyApp.exe</code> with the shortcut starting <code>MyLauncher.exe /lauch MyApp.exe</code>.</p>