From: Ovod-Everett, T. <TOv...@al...> - 2007-06-15 17:56:33
|
Does the "small C based installer app" use buffering on its pipes or not? If not, is there a way to write another small C (or PerlApp-based) wrapper that is also marked as needing elevated permissions that will then start the installer app and redirect its output to a temp file that can then be read by the Wx app? If it does buffer its pipes, then things get a _lot_ trickier. In a situation under Win2K where I had to grab the output from an executable that buffered its pipes and that used both STDOUT and STDIN, I ended up having to start a Perl script in a fresh console that then forked the executable within the same console and that used the Win32 APIs to scrape output from the console every 10th of a second and then did comparisons on that to figure out what was changing. Yuck! --Toby Ovod-Everett -----Original Message----- From: wxp...@li... [mailto:wxp...@li...] On Behalf Of Ed W Sent: Friday, June 15, 2007 9:26 AM To: wxperl-users Subject: [wxperl-users] grr, vista issues OK, riddle me this: I need to run a small C based installer app from my main perl program. =20 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*=20 be run via shellexecute or similar and NOT via CreateProcess, otherwise=20 vista seems to stop execution without letting the user escalate privs. =20 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=20 running installer) So having beaten around the bush on this for a long time already, can=20 anyone suggest that neatest way to start a completely separate process=20 under perl (preferably using shellexecute) and also be able to consume=20 the capture the output from the independent process (without blocking)=20 and filter it, then shove it into a Wx window to show that we are still=20 working? I don't need to put input into the external app, just capture=20 it's output (it's a console app) and process the output in roughly realtime Thanks for any pointers Ed W ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users |