Changeset 8230 for trunk/tools/install


Ignore:
Timestamp:
Apr 11, 2002, 6:25:31 PM (23 years ago)
Author:
bird
Message:

Changed to work with new warpin releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/install/odin.cmd

    r7988 r8230  
    1 /* $Id: odin.cmd,v 1.40 2002-02-21 23:13:08 sandervl Exp $
     1/* $Id: odin.cmd,v 1.41 2002-04-11 16:25:31 bird Exp $
    22 *
    33 * Odin32 API WarpIn installation script generator.
     
    7878        exit(2);
    7979    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
    8183    do
    82         say 'failed to create WarpIn script.'
     84        say 'failed to pack archive.(rc='rc')'
    8385        exit(3);
    8486    end
     
    492494sBinDir = sMainDir||'\bin';
    493495sDllDir = sBinDir||'\'||sDllDir;
    494 sWICCmd = 'wic.exe '||sInstallArchive ' -a';
     496sWICFile = 'wicinput.lst';
    495497
    496498/*
     
    498500 */
    499501call SysFileDelete sInstallArchive
    500 
    501 /*
    502  * Script
    503  */
    504 'wic.exe' sInstallArchive '-s' sInstFile
     502call SysFileDelete sWICFile
     503rc = stream(sWICFile, 'c', 'open write');
     504if (pos('READY', rc) <> 1) then
     505do
     506    say 'Failed to open '''sWICFile'''. (rc='rc')';
     507    parse rc .':'irc
     508    return irc;
     509end
     510
     511/*
     512 * Script.
     513 */
     514call lineout sWICFile, sInstallArchive '-s' sInstFile '-a'
    505515
    506516/*
    507517 * Packet 1
    508518 */
    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;
     519call lineout sWICFile, '1 -c'||sMainDir 'ChangeLog LICENSE.TXT WGSS50.lic';
     520call lineout sWICFile, '1 -c'||sDocDir 'ChangeLog-1999 ChangeLog-2000 ChangeLog-2001 ChangeLog-2002 Readme.txt ReportingBugs.txt Logging.txt Odin.ini.txt Readme.Odinbug';
     521call lineout sWICFile, '1 -c'||sBinDir||' Odinbug.exe';
    515522
    516523/*
    517524 * Packet 2
    518525 */
    519 /* sWICCmd '2 -c'||sBinDir' odin.ini'; */
    520526/* 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;
     527call lineout sWICFile, '2 -c'||sDllDir||' pe.exe *.dll pec.exe odininst.exe regsvr32.exe win32k.sys win32k.ddp Win32kCC.exe kRx.exe Xx2Lx.exe';
     528call lineout sWICFile, '2 -c'||sBinDir||' wgss50.dll';
    525529
    526530if (pos('DEBUG', translate(filespec('name', sDllDir)))) then
     
    528532    iDbg = lastpos('DEBUG', translate(sDllDir));
    529533    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';
    535536end
    536537
     
    539540 * Packet 3 is only win32k.sys config.sys line but it seems like we have to add something.
    540541 */
    541 sWICCmd '3 -c'||sDllDir '*.ddp';
    542 if (rc <> 0) then return rc;
     542call lineout sWICFile, '3 -c'||sDllDir '*.ddp';
    543543
    544544
     
    547547 */
    548548if (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 */
     554call stream sWICFile, 'c', 'close';
     555
     556/*
     557 * Call wic.exe
     558 */
     559say 'wic.exe @'||sWICFile;
     560'wic.exe @'||sWICFile;
     561if (rc <> 0) then say 'wic failed';
    554562
    555563return rc;
Note: See TracChangeset for help on using the changeset viewer.