Ignore:
Timestamp:
2000-09-05T03:30:48+12:00 (24 years ago)
Author:
cs025
Message:

Further changes for uninstaller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/launchApp.cpp

    r1397 r1498  
    1111}
    1212
     13void launchApp::setCommandLine(string commandLine)
     14{   this->commandline = commandLine;
     15}
     16
    1317int launchApp::run(bool test, int deftest, string prompt, string header, bool wait)
    1418{ gsPlatform    platform;
    1519    FilePath        exePath;
     20  string            runLine;
    1621
    1722    if (test)
     
    4348  process.hProcess  =   0;
    4449
     50  // build command line if required
     51  if (this->commandline != "")
     52  { runLine = exePath.pathString() + " " + this->commandline;
     53  }
     54
    4555    // execute the process
    46   if (CreateProcess(exePath.cString(), NULL, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &process) == 0)
     56  if (CreateProcess((LPSTR) exePath.cString(),
     57                                    runLine != "" ? (LPSTR) runLine.c_str() : NULL,
     58                    NULL, NULL, FALSE, 0, NULL, NULL,
     59                    &startup, &process) == 0)
    4760  { DWORD   error   = GetLastError();
    4861    return -2;
Note: See TracChangeset for help on using the changeset viewer.