problem with system(@args)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

i'm using using Win32::GuiTest to programmatically uninstall an
application. for that, i need to launch the uninstaller (setup.exe) as
a separate process *and* return back to the script so i can use the
sendkeys fucntion. this works great for the compressed installer where
i issue a simple:

system ("start c:\guitest\test\myapp.exe");

however, i'm running into problems while uninstalling.

@args = ("C:\Program Files\InstallShield Installation
#system(@args) == 0 or die "crap";

this doesn't work because the uninstaller is launched in the same
process, so the next command is never executed

also, the following does nothing. no error but the uninstaller is never
system("start /D \"C:\Program Files\InstallShield Installation
Information\\" setup.exe

i can chdir to the installshield root directory and:
system("start $installShieldGUID/setup.exe -forced_uninstall");
this works but doesn't seem like the best solution. it also forces me
to reboot my machine which is normally unneccessary.

any hints/ideas are appreciated.

Site Timeline