Ignore:
Timestamp:
2009-05-26T11:55:45+12:00 (15 years ago)
Author:
oranfry
Message:

cdrom wrapper needs to use temp dir, so basing it off web wrapper after all

Location:
release-kits/shared/windows/wrapper
Files:
1 deleted
1 edited

Legend:

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

    r19587 r19594  
    88#include <shellapi.h>
    99#include <direct.h>
     10
     11using namespace std;
     12
     13#ifdef WEB
    1014#include "libsearch4j.h"
    11 
    12 using namespace std;
     15#endif
    1316
    1417//globals
     
    310313    delete tmp; //  deallocate memory
    311314   
     315    #ifdef WEB
    312316    //rip out java archive if it is bundled
    313317    set_splash_step( "XJAVA" );
     
    380384        }
    381385    }
     386
     387    #endif
     388
     389    #ifdef CDROM
     390
     391    //ask if they want to install, then do it if so
     392    int choice = MessageBox(NULL, "Install Greenstone?", "Greenstone", MB_OKCANCEL | MB_ICONQUESTION );
     393    if ( choice == IDOK ) {
     394
     395        //launch the jar
     396        set_splash_step( "LAUNCHING" );
     397        spoof_progress( SPOOF_TIME );
     398        string cmd = "\"";
     399        cmd.append( owd );
     400        cmd.append( "\\Java\\Windows\\jre\\bin\\java.exe\" \"-Dorig.dir=" );
     401        cmd.append( owd );
     402        cmd.append( "\" -jar greenstone.jar" );
     403
     404        //hide splash screen
     405        ShowWindow(splashWnd, SW_HIDE);
     406       
     407        //run the jar
     408        int launch_exit_code = process( cmd, false );
     409    }
     410
     411    #endif
    382412   
    383413    //clean up the temp directory
Note: See TracChangeset for help on using the changeset viewer.