problem with system(@args)

Discussion in 'Perl Misc' started by npritchard@mail.com, Feb 18, 2005.

  1. Guest

    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");
    Win32::GuiTest::SendKeys("{ENTER}");

    however, i'm running into problems while uninstalling.

    =======================
    @args = ("C:\\Program Files\\InstallShield Installation
    Information\\{71A2182D-A59E-4560-80BD-71E3D21A13F3}\\setup.exe",
    "-forced_uninstall");
    #system(@args) == 0 or die "crap";

    system(@args);
    ===============================
    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
    launched
    ==============================
    system("start /D \"C:\\Program Files\\InstallShield Installation
    Information\\\{71A2182D-A59E-4560-80BD-71E3D21A13F3\}\\\" setup.exe
    -forced_uninstall");
    =============================

    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.
     
    , Feb 18, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Varn
    Replies:
    2
    Views:
    632
    Ken Varn
    Jun 22, 2005
  2. Replies:
    3
    Views:
    495
    David Eppstein
    Sep 17, 2003
  3. Pierre Fortin

    args v. *args passed to: os.path.join()

    Pierre Fortin, Sep 18, 2004, in forum: Python
    Replies:
    2
    Views:
    696
    Pierre Fortin
    Sep 18, 2004
  4. er
    Replies:
    2
    Views:
    509
  5. Andrew Tomazos
    Replies:
    5
    Views:
    580
Loading...

Share This Page