How to update a desktop app
bvckup2.com
bvckup2.com
I also looked at the option of launching the program in a way that doesn't lock the .exe. For one, it's complicated. It requires creating a process in a Suspended state using a different executable, then basically gutting the memory of that process and replacing it with your own process copy, which needs to be fully preped with all imports and relocations taken care of, etc. In other words, it's pretty complicated.
But what's more important, the only type of software that employs this sort of process launching is the malware. In fact, the above method is derived straight from one of the viruses that made rounds a couple of years ago [1], and it was used by the virus to masquerade as a legit Windows process. So, in other words, you employ this sort of hackery in your program - you will quickly end up talking to anti-virus vendors about taking your software off their blacklists. It's a cool stuff, too bad it's off limits.
First thing I thought when reading it was Hmmm ability to run something as another user.
Or am I really missing something here, and you set up the object with the security token used on the binary file?
My question (sorry if it's super dumb and I'm missing something) is what permissions are needed to communicate via the event?