Ignore:
Timestamp:
2008-03-06T14:09:51+13:00 (16 years ago)
Author:
oranfry
Message:

hacked launch4j to report javas location aswell as just running it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/launch4j/head_src/consolehead/consolehead.c

    r15024 r15054  
    2929int main(int argc, char* argv[])
    3030{
     31   
     32    //added by oran - to store the value of the 'subcommand' to be run
     33    char subcom[8] = "run";
     34
    3135    setConsoleFlag();
    3236    HMODULE hLibrary = NULL;
     
    4246           strcat(cmdLine, "\"");
    4347        }
     48       
     49        if ( _stricmp(argv[i], "-find") == 0 ) {
     50            strcpy( subcom, "find" );
     51        } else if ( _stricmp(argv[i], "-compare") == 0 ) {
     52            strcpy( subcom, "compare" );
     53        }
     54       
    4455        if (i < argc - 1) {
    4556            strcat(cmdLine, " ");
    4657        }
    4758    }
    48     if (!prepare(hLibrary, cmdLine)) {
     59       
     60    if (!prepare(hLibrary, cmdLine, subcom)) {
    4961        if (hLibrary != NULL) {
    5062            FreeLibrary(hLibrary);
     
    5365    }
    5466    FreeLibrary(hLibrary);
    55 
    5667    int result = (int) execute(TRUE);
    5768    if (result == -1) {
Note: See TracChangeset for help on using the changeset viewer.