Simply state that the desktop owns it!
--code--
use strict;
use warnings;
use Win32::GUI;
my $ret =
Win32::GUI::ShellExecute(Win32::GUI::GetDesktopWindow(),'open','notepad.exe','readme.txt','',1);
Scott Spearman wrote:
I don't know if it's in Win32 or ActiveStates Perl, but the traditional Unix
method is to do an exec(). It takes a new executable and completely
replaces your running program with the new program specified.
I figure it's probably something you've already tried, but just in case...
Scott Spearman
Programmer Analyst - Pikeville Medical Center
[EMAIL PROTECTED]
(606) 218-4660
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Zach
Sent: Thursday, December 28, 2006 6:46 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Launching a detached child process fromWin32
app
I recently wrote an install shield with Win32::GUI. A
nice feature I see of some install shields is the
option to "Launch application" after the install is
done. It's a nice convinient feature to let the user
get down to business without having to click on the
app via the start menu or desktop icon.
The problem is that I have yet to find a method for
executing a program from a Win32 that doesn't wait for
the child to die. I have tried various fork methods as
well as Proc methods and Win32::Job and threads. All
of these methods require that the parent, or calling
program wait until the spawn's program dies. I of
course just want to launch the install app and let the
user exit the install shield. This has to be doable
right?
Thank you.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/