Changeset 19594 for release-kits/shared/windows
- Timestamp:
- 2009-05-26T11:55:45+12:00 (15 years ago)
- Location:
- release-kits/shared/windows/wrapper
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/windows/wrapper/wrapper.cpp
r19587 r19594 8 8 #include <shellapi.h> 9 9 #include <direct.h> 10 11 using namespace std; 12 13 #ifdef WEB 10 14 #include "libsearch4j.h" 11 12 using namespace std; 15 #endif 13 16 14 17 //globals … … 310 313 delete tmp; // deallocate memory 311 314 315 #ifdef WEB 312 316 //rip out java archive if it is bundled 313 317 set_splash_step( "XJAVA" ); … … 380 384 } 381 385 } 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 382 412 383 413 //clean up the temp directory
Note:
See TracChangeset
for help on using the changeset viewer.