Windows execute but don't wait.
- Posted by AndyDrummond Jul 18, 2013
- 2418 views
I am a dinosaur in that I am using Eu3, but that shouldn't affect my question.
I have a program which recognises from my website that a new version is available.
It downloads the new setup program, but at that point I get unstuck.
I can't run it because the host program sits and waits for the setup to complete but it can't do so because it's trying to update the very program which is sunning it. Did you follow that?
In DOS I could call exec() and not wait; problem solved. In Win7 I don't seem able to do that. I can call shellExecuteEx() but I can't find any way to leave the invoked program running while the host program carries on and terminates.
So, ladies and gentlemen, how can I get around that? I would appreciate the simple reply "Ah, use EP_NOWAIT" or similar - but I suspect it is more complicated than that. I found no help on MSDN...
Thanks, Andy