Changeset 44 for trunk/gui/shared


Ignore:
Timestamp:
Aug 19, 2013, 3:10:23 AM (12 years ago)
Author:
Alex Taylor
Message:

Fixed some minor errors in updating presentation drivers (printerpaks).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/shared/PrManUtl.VRS

    r43 r44  
    237237    IF drv_dir == '' THEN RETURN 0
    238238
    239 
    240239    IF VerifyDriverEAs( driver ) == 0 THEN RETURN 0
    241240
     
    273272    END
    274273
     274    /* If AUXPRINT.PAK exists, copy it as well */
     275    copyfile = drv_dir'\AUXPRINT.PAK'
     276    IF STREAM( copyfile, 'C', 'QUERY EXISTS') <> '' THEN DO
     277        ok = VRCopyFile( copyfile, newdrvdir'\AUXPRINT.PAK'
     278        CALL LINEOUT globals.!log1, ' -' copyfile ':' ok
     279    END
     280
     281    /* Create an EA file if necessary */
    275282    eafile = VRParseFilePath( driver, 'N') || '.EA'
    276     IF \VRFileExists( newdrvdir'\'eafile ) THEN
    277         ADDRESS CMD '@EAUTIL' newdrvdir'\'drv_name ea_file '/s /p 2>NUL 1>NUL'
     283    IF VRFileExists( newdrvdir'\'eafile ) THEN
     284        CALL VRDeleteFile newdrvdir'\'eafile
     285    ADDRESS CMD '@EAUTIL' newdrvdir'\'drv_name newdrvdir'\'eafile '/s /p 2>NUL 1>NUL'
    278286
    279287RETURN 1
Note: See TracChangeset for help on using the changeset viewer.