This is a bit advanced, and I'm not certain what I'm looking to achieve is even possible.
I have a 3rd party application (no source code, or ability to change it except via plugins), and I have written some plugins for it.
When my plugins have updates, I have to manually go to each users machine and replace the plugin files.
Many users already have shortcuts to this 3rd party application (say "C:\App\app.exe config.ini" - yes it's passing in an argument for configuration).
To make this program auto update, I have renamed app.exe to app_launcher.exe and created a new app.exe that checks for new plugin files and copies them over - then launches app_launcher.exe with the passed arguments. The procedure works great.
Users however have pinned the original shortcut to their taskbar, and now my updater runs under that icon while the final app_launcher.exe shows up under a new icon. It's understandable because its a different app, but it's also an undesirable behavior.
I have found that supposedly this could be resolved by the two applications using the same AppUserModelID. This has been somewhat problematic since I didn't have code for the 3rd party app.
Using the WindowsAPICodePack I was able to set the AppUserModelID for the updater application, and after some time I passed it on to the original application via CreateProcess (kernel32.dll reference).
Is what I'm looking to do even possible? If so, how? I do NOT want to install another 3rd party app to handle this.
Thanks!
I have a 3rd party application (no source code, or ability to change it except via plugins), and I have written some plugins for it.
When my plugins have updates, I have to manually go to each users machine and replace the plugin files.
Many users already have shortcuts to this 3rd party application (say "C:\App\app.exe config.ini" - yes it's passing in an argument for configuration).
To make this program auto update, I have renamed app.exe to app_launcher.exe and created a new app.exe that checks for new plugin files and copies them over - then launches app_launcher.exe with the passed arguments. The procedure works great.
Users however have pinned the original shortcut to their taskbar, and now my updater runs under that icon while the final app_launcher.exe shows up under a new icon. It's understandable because its a different app, but it's also an undesirable behavior.
I have found that supposedly this could be resolved by the two applications using the same AppUserModelID. This has been somewhat problematic since I didn't have code for the 3rd party app.
Using the WindowsAPICodePack I was able to set the AppUserModelID for the updater application, and after some time I passed it on to the original application via CreateProcess (kernel32.dll reference).
Is what I'm looking to do even possible? If so, how? I do NOT want to install another 3rd party app to handle this.
Thanks!