I have WPF app that can be only a Single Instance, I need to somehow handle custom URLs params in it?
In the Windows schema shell/open/command
I have
"C:\Users\Any\AppData\Roaming\MyApp\MyApp.exe" --my-param="%1"
.
When the app is not running it's super easy, to start the app and handle the params, but when there is already an instance what can I do?
In the ApplicationMutex
where I check if it's the second instance, write something to the file that is observed by the first instance?