Re: Windows execute but don't wait.
- Posted by AndyDrummond Jul 20, 2013
- 2189 views
Now I am completely confused. I wrote a simple Eu program to execute the setup using the simple shellExecute() procedure from Win32Lib - and the program started the setup running and then terminated itself. It didn't wait for setup to run to completion before continuing to the abort(0) command. So .. I did the same in my main program: if it finds a new setup is available then:
shellExecute("open", "C:...setup.exe", SW_SHOWNORMAL) abort(0)
And it does exactly what I wanted, with nothing clever or hard. I still feel sure that it CAN'T be right but it seems to be doing just what I want. I've tried it a few times to make sure and yes, it is doing just that.
My understanding of Windows API is clearly terrible; that's why I use Euphoria in the first place! All the work is done by
The "A" Team!!
Andy