Changeset 8230 for trunk/tools/install
- Timestamp:
- Apr 11, 2002, 6:25:31 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/install/odin.cmd
r7988 r8230 1 /* $Id: odin.cmd,v 1.4 0 2002-02-21 23:13:08 sandervlExp $1 /* $Id: odin.cmd,v 1.41 2002-04-11 16:25:31 bird Exp $ 2 2 * 3 3 * Odin32 API WarpIn installation script generator. … … 78 78 exit(2); 79 79 end 80 if (PackFiles('odin32inst.wis', asArg.i, MakeArchiveName(asArg.i)) <> 0) then 80 81 rc = PackFiles('odin32inst.wis', asArg.i, MakeArchiveName(asArg.i)); 82 if (rc <> 0) then 81 83 do 82 say 'failed to create WarpIn script.'84 say 'failed to pack archive.(rc='rc')' 83 85 exit(3); 84 86 end … … 492 494 sBinDir = sMainDir||'\bin'; 493 495 sDllDir = sBinDir||'\'||sDllDir; 494 sWIC Cmd = 'wic.exe '||sInstallArchive ' -a';496 sWICFile = 'wicinput.lst'; 495 497 496 498 /* … … 498 500 */ 499 501 call SysFileDelete sInstallArchive 500 501 /* 502 * Script 503 */ 504 'wic.exe' sInstallArchive '-s' sInstFile 502 call SysFileDelete sWICFile 503 rc = stream(sWICFile, 'c', 'open write'); 504 if (pos('READY', rc) <> 1) then 505 do 506 say 'Failed to open '''sWICFile'''. (rc='rc')'; 507 parse rc .':'irc 508 return irc; 509 end 510 511 /* 512 * Script. 513 */ 514 call lineout sWICFile, sInstallArchive '-s' sInstFile '-a' 505 515 506 516 /* 507 517 * Packet 1 508 518 */ 509 sWICCmd '1 -c'||sMainDir 'ChangeLog LICENSE.TXT WGSS50.lic'; 510 if (rc <> 0) then return rc; 511 sWICCmd '1 -c'||sDocDir 'ChangeLog-1999 ChangeLog-2000 ChangeLog-2001 ChangeLog-2002 Readme.txt ReportingBugs.txt Logging.txt Odin.ini.txt Readme.Odinbug'; 512 if (rc <> 0) then return rc; 513 sWICCmd '1 -c'||sBinDir||' Odinbug.exe'; 514 if (rc <> 0) then return rc; 519 call lineout sWICFile, '1 -c'||sMainDir 'ChangeLog LICENSE.TXT WGSS50.lic'; 520 call lineout sWICFile, '1 -c'||sDocDir 'ChangeLog-1999 ChangeLog-2000 ChangeLog-2001 ChangeLog-2002 Readme.txt ReportingBugs.txt Logging.txt Odin.ini.txt Readme.Odinbug'; 521 call lineout sWICFile, '1 -c'||sBinDir||' Odinbug.exe'; 515 522 516 523 /* 517 524 * Packet 2 518 525 */ 519 /* sWICCmd '2 -c'||sBinDir' odin.ini'; */520 526 /* if (rc <> 0) then return rc; */ 521 sWICCmd '2 -c'||sDllDir||' pe.exe *.dll pec.exe odininst.exe regsvr32.exe win32k.sys win32k.ddp Win32kCC.exe kRx.exe Xx2Lx.exe'; 522 if (rc <> 0) then return rc; 523 sWICCmd '2 -c'||sBinDir||' wgss50.dll'; 524 if (rc <> 0) then return rc; 527 call lineout sWICFile, '2 -c'||sDllDir||' pe.exe *.dll pec.exe odininst.exe regsvr32.exe win32k.sys win32k.ddp Win32kCC.exe kRx.exe Xx2Lx.exe'; 528 call lineout sWICFile, '2 -c'||sBinDir||' wgss50.dll'; 525 529 526 530 if (pos('DEBUG', translate(filespec('name', sDllDir)))) then … … 528 532 iDbg = lastpos('DEBUG', translate(sDllDir)); 529 533 sRelDir = substr(sDllDir, 1, iDbg - 1)||'release'||substr(sDllDir, iDbg + 5); 530 sWICCmd '2 -c'||sRelDir 'odincrt.dll odincrt.sym'; 531 if (rc <> 0) then return rc; 532 533 sWICCmd '2 -c'||sDllDir '*.sym'; 534 if (rc <> 0) then return rc; 534 call lineout sWICFile, '2 -c'||sRelDir 'odincrt.dll odincrt.sym'; 535 call lineout sWICFile, '2 -c'||sDllDir '*.sym'; 535 536 end 536 537 … … 539 540 * Packet 3 is only win32k.sys config.sys line but it seems like we have to add something. 540 541 */ 541 sWICCmd '3 -c'||sDllDir '*.ddp'; 542 if (rc <> 0) then return rc; 542 call lineout sWICFile, '3 -c'||sDllDir '*.ddp'; 543 543 544 544 … … 547 547 */ 548 548 if (pos('DEBUG', translate(filespec('name', sDllDir))) <= 0) then 549 do 550 sWICCmd '4 -c'||sDllDir '*.sym'; 551 if (rc <> 0) then return rc; 552 end 553 549 call lineout sWICFile, '4 -c'||sDllDir '*.sym'; 550 551 /* 552 * Close input file. 553 */ 554 call stream sWICFile, 'c', 'close'; 555 556 /* 557 * Call wic.exe 558 */ 559 say 'wic.exe @'||sWICFile; 560 'wic.exe @'||sWICFile; 561 if (rc <> 0) then say 'wic failed'; 554 562 555 563 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.