From: Ed W <li...@wi...> - 2007-06-15 17:25:38
|
OK, riddle me this: I need to run a small C based installer app from my main perl program. The app needs to run with "elevated permissions", which is a simple case to mark the app appropriately under Vista, however, the app them *must* be run via shellexecute or similar and NOT via CreateProcess, otherwise vista seems to stop execution without letting the user escalate privs. I also need to capture the output in realtime from the installer app and show salient bits of it to the user to show that we didn't crash (long running installer) So having beaten around the bush on this for a long time already, can anyone suggest that neatest way to start a completely separate process under perl (preferably using shellexecute) and also be able to consume the capture the output from the independent process (without blocking) and filter it, then shove it into a Wx window to show that we are still working? I don't need to put input into the external app, just capture it's output (it's a console app) and process the output in roughly realtime Thanks for any pointers Ed W |