We have an application, let's call it MyApp
. On installation, we create a desktop icon for MyApp, which basically calls MyLauncher.exe /launch MyApp.exe
. MyLauncher does some useful stuff (check for updates, etc.), and then starts MyApp.
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"):
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:
I understand why this happens. Since MyLauncher starts MyApp, the Windows 7 taskbar sees them as two different applications.
Obviously, my question is: As the developer of MyLauncher and MyApp, can I do something about this? I'd like the Windows 7 taskbar to "associate" all instances of MyApp.exe
with the shortcut starting MyLauncher.exe /lauch MyApp.exe
.
msaccess.exe MyVbaProject.mdb
, hence the VBA tag. The VBA application makes heavy use of (our own) .net libraries, hence the c# and .net tags. A solution in any of these languages is fine. Windows API calls are fine as well. – Ess