Changeset 17307


Ignore:
Timestamp:
2008-09-17T13:56:27+12:00 (16 years ago)
Author:
oranfry
Message:

making the windows installer behave like the linux one wrt bundled java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/windows/wrapper/wrapper.cpp

    r17271 r17307  
    6767            break;
    6868        }
     69    }
     70   
     71    if ( no_chunks == 0 ) {
     72        return 1;
    6973    }
    7074   
     
    294298    //rip out java archive if it is bundled
    295299    set_splash_step( "XJAVA" );
    296     int javaIsBundled = extractResource( "JAVA", "EXE", "@java.installer@" );
     300    int javaIsBundled = (extractResource( "JAVA", "EXE", "@java.installer@" ) == 0);
    297301    if ( javaIsBundled ) {
    298302        system( "@java.installer@" );
     
    305309    Jvm minimum;
    306310    minimum.setVersionFromString( "@java.min.version@" );
    307     string hint = "@java.extracted@";
     311    string phint = "@java.extracted@";
     312    string hint = "";
    308313    bool verbose = true;
    309314    Jvm foundJvm;
    310     bool jvmFound = find( foundJvm, use_minimum, minimum, hint, verbose );
     315    bool jvmFound = find( foundJvm, use_minimum, minimum, phint, hint, verbose );
    311316   
    312317    //if the jvm was not found, try to fix it and find it
     
    317322       
    318323        //tell them if java is absent or just too old
    319         if ( find( foundJvm, false, minimum, "", false ) ) {
     324        if ( find( foundJvm, false, minimum, "", "", false ) ) {
    320325            message.append( "your java is too old.");
    321326        } else {
     
    361366    _unlink("ant.install.log");
    362367    _unlink("@java.installer@");
    363     system("rd /s @java.extracted@");
     368    system("rd /s /q @java.extracted@");
    364369    SetCurrentDirectory("..");
    365370    _rmdir( tempdir.c_str() );
Note: See TracChangeset for help on using the changeset viewer.