| 1 | <WARPIN VERSION="1.0.15 CODEPAGE=850">
|
|---|
| 2 | <HEAD>
|
|---|
| 3 | <TITLE>PM Printer Manager</TITLE>
|
|---|
| 4 |
|
|---|
| 5 | <!-- REXX FUNCTIONS ----------------------------------------------------->
|
|---|
| 6 |
|
|---|
| 7 | <REXX NAME="DefaultPath">
|
|---|
| 8 | path = VALUE('OSDIR',,'OS2ENVIRONMENT')
|
|---|
| 9 | IF path == '' THEN RETURN '$(WARPIN_DEFAULTTOOLSPATH)'
|
|---|
| 10 | IF TRANSLATE( VALUE('OS',,'OS2ENVIRONMENT')) == 'ECS' THEN
|
|---|
| 11 | RETURN path'\system'
|
|---|
| 12 | ELSE
|
|---|
| 13 | RETURN path'\apps'
|
|---|
| 14 | </REXX>
|
|---|
| 15 |
|
|---|
| 16 | <REXX NAME="DefaultPath2">
|
|---|
| 17 | path = VALUE('OSDIR',,'OS2ENVIRONMENT')
|
|---|
| 18 | IF path == '' THEN path = '?:\OS2'
|
|---|
| 19 | RETURN path
|
|---|
| 20 | </REXX>
|
|---|
| 21 |
|
|---|
| 22 | <REXX NAME="CheckDLL">
|
|---|
| 23 | /* Searches the system LIBPATH for the specified DLL. If not found,
|
|---|
| 24 | * displays a popup dialog, and optionally aborts the installation.
|
|---|
| 25 | *
|
|---|
| 26 | * Parameters:
|
|---|
| 27 | * dname Name of the DLL to look for (must include extension)
|
|---|
| 28 | * fail If 1, abort installation if the DLL was not found
|
|---|
| 29 | * message Message text to be shown when the DLL is not found
|
|---|
| 30 | */
|
|---|
| 31 | CALL RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
|
|---|
| 32 | CALL SysLoadFuncs
|
|---|
| 33 |
|
|---|
| 34 | PARSE ARG dname fail message
|
|---|
| 35 | IF dname == '' THEN RETURN ''
|
|---|
| 36 |
|
|---|
| 37 | _bd = SysBootDrive()
|
|---|
| 38 | IF _bd == '' THEN
|
|---|
| 39 | _bd = FILESPEC('DRIVE', VALUE('COMSPEC',,'OS2ENVIRONMENT'))
|
|---|
| 40 | _csys = _bd'\CONFIG.SYS'
|
|---|
| 41 |
|
|---|
| 42 | CALL SysFileSearch 'LIBPATH=', _csys, 'match.'
|
|---|
| 43 | DO i = 1 TO match.0
|
|---|
| 44 | PARSE UPPER VAR match.i _lead 'LIBPATH=' _lpath
|
|---|
| 45 | IF (_lead == '') & (_lpath <> '') THEN LEAVE
|
|---|
| 46 | END
|
|---|
| 47 | CALL SETLOCAL
|
|---|
| 48 | _testenv = 'TEST_'dname'_LIBPATH'
|
|---|
| 49 | CALL VALUE _testenv, _lpath, 'OS2ENVIRONMENT'
|
|---|
| 50 | location = SysSearchPath( _testenv, dname )
|
|---|
| 51 | CALL ENDLOCAL
|
|---|
| 52 |
|
|---|
| 53 | IF location == '' THEN DO
|
|---|
| 54 | title = dname 'Not Found'
|
|---|
| 55 | rc = WirexxShowMessage( title, message )
|
|---|
| 56 | IF fail == 1 THEN CALL WirexxCancel
|
|---|
| 57 | END
|
|---|
| 58 |
|
|---|
| 59 | RETURN ''
|
|---|
| 60 | </REXX>
|
|---|
| 61 |
|
|---|
| 62 | <REXX NAME="ReqDLL">
|
|---|
| 63 | /* Searches the system LIBPATH for the specified DLL. If not found,
|
|---|
| 64 | * returns the string 'REQUIRES=xxx'.
|
|---|
| 65 | *
|
|---|
| 66 | * Parameters:
|
|---|
| 67 | * dname Name of the DLL to look for (must include extension)
|
|---|
| 68 | * reqpkg Value of REQUIRES string to return if DLL is not found
|
|---|
| 69 | */
|
|---|
| 70 | CALL RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
|
|---|
| 71 | CALL SysLoadFuncs
|
|---|
| 72 |
|
|---|
| 73 | PARSE ARG dname reqpkg
|
|---|
| 74 | IF dname == '' THEN RETURN ''
|
|---|
| 75 |
|
|---|
| 76 | _bd = SysBootDrive()
|
|---|
| 77 | IF _bd == '' THEN
|
|---|
| 78 | _bd = FILESPEC('DRIVE', VALUE('COMSPEC',,'OS2ENVIRONMENT'))
|
|---|
| 79 | _csys = _bd'\CONFIG.SYS'
|
|---|
| 80 |
|
|---|
| 81 | CALL SysFileSearch 'LIBPATH=', _csys, 'match.'
|
|---|
| 82 | DO i = 1 TO match.0
|
|---|
| 83 | PARSE UPPER VAR match.i _lead 'LIBPATH=' _lpath
|
|---|
| 84 | IF (_lead == '') & (_lpath <> '') THEN LEAVE
|
|---|
| 85 | END
|
|---|
| 86 | CALL SETLOCAL
|
|---|
| 87 | _testenv = 'TEST_'dname'_LIBPATH'
|
|---|
| 88 | CALL VALUE _testenv, _lpath, 'OS2ENVIRONMENT'
|
|---|
| 89 | location = SysSearchPath( _testenv, dname )
|
|---|
| 90 | CALL ENDLOCAL
|
|---|
| 91 |
|
|---|
| 92 | IF location == '' THEN DO
|
|---|
| 93 | CALL WirexxPutEnv dname, '0'
|
|---|
| 94 | IF reqpkg <> '' THEN
|
|---|
| 95 | RETURN 'REQUIRES='reqpkg
|
|---|
| 96 | END
|
|---|
| 97 |
|
|---|
| 98 | CALL WirexxPutEnv dname, '1'
|
|---|
| 99 | RETURN ''
|
|---|
| 100 | </REXX>
|
|---|
| 101 |
|
|---|
| 102 | <REXX NAME="ConditionalTitle">
|
|---|
| 103 | PARSE ARG dllname title
|
|---|
| 104 | was_found = WirexxGetEnv( dllname )
|
|---|
| 105 | IF was_found == 1 THEN
|
|---|
| 106 | RETURN '[Already Installed]' title
|
|---|
| 107 | ELSE
|
|---|
| 108 | RETURN title
|
|---|
| 109 | </REXX>
|
|---|
| 110 |
|
|---|
| 111 | <REXX NAME="SelectIfRequired">
|
|---|
| 112 | PARSE ARG dllname
|
|---|
| 113 | was_found = WirexxGetEnv( dllname )
|
|---|
| 114 | IF was_found == 1 THEN
|
|---|
| 115 | RETURN ''
|
|---|
| 116 | ELSE
|
|---|
| 117 | RETURN 'SELECT'
|
|---|
| 118 | </REXX>
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | <!-- PACKAGES ----------------------------------------------------------->
|
|---|
| 122 |
|
|---|
| 123 | <PCK INDEX=1
|
|---|
| 124 | PACKAGEID="Alex Taylor\Printer Manager\Program\0\8\7"
|
|---|
| 125 | TITLE="Printer Manager (including English language support)"
|
|---|
| 126 | TARGET="=("DefaultPath")\printman"
|
|---|
| 127 | SELECT
|
|---|
| 128 |
|
|---|
| 129 | =("CheckDLL VROBJ.DLL 0 The runtime library VROBJ.DLL was not found on your system. You must install this library in order to use Printer Manager.")
|
|---|
| 130 | =("CheckDLL VROBJEX.DLL 0 The runtime library VROBJEX.DLL was not found on your system. You must install this library in order to use Printer Manager.")
|
|---|
| 131 | =("CheckDLL WPTOOLS.DLL 0 The runtime library WPTOOLS.DLL was not found on your system. You must install this library in order to use Printer Manager.")
|
|---|
| 132 | =("CheckDLL PR1UTIL.DLL 0 The runtime library PR1UTIL.DLL was not found on your system. You must install this library in order to use Printer Manager.")
|
|---|
| 133 |
|
|---|
| 134 | =("ReqDLL RXPRTUTL.DLL 2")
|
|---|
| 135 |
|
|---|
| 136 | CREATEOBJECT="REPLACE WPProgram|Manage Printers|<WP_PRINTERSFOLDER>|EXENAME=$(1)\printman.exe;PROGTYPE=PM;OBJECTID=<PRINT_MANAGER>;"
|
|---|
| 137 | CREATEOBJECT="REPLACE WPProgram|Install Printer|<WP_PRINTERSFOLDER>|EXENAME=$(1)\printman.exe;PARAMETERS=/create;PROGTYPE=PM;ICONFILE=$(1)\newprint.ico;OBJECTID=<WP_PRINTGUIDE>;"
|
|---|
| 138 | >This package contains the graphical printer manager along with the English language files.</PCK>
|
|---|
| 139 |
|
|---|
| 140 | <PCK INDEX=2
|
|---|
| 141 | PACKAGEID="Alex Taylor\REXX Printer Utilities\Runtime\0\3"
|
|---|
| 142 | TITLE="=("ConditionalTitle RXPRTUTL.DLL REXX Printer Utilities (RXPRTUTL.DLL)")"
|
|---|
| 143 | TARGET="=("DefaultPath2")\dll"
|
|---|
| 144 | =("SelectIfRequired RXPRTUTL.DLL")
|
|---|
| 145 | >This package contains the required library VROBJ.DLL</PCK>
|
|---|
| 146 |
|
|---|
| 147 | </HEAD>
|
|---|
| 148 |
|
|---|
| 149 | <BODY>
|
|---|
| 150 |
|
|---|
| 151 | <PAGE INDEX=1 TYPE=README>
|
|---|
| 152 | <NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
|
|---|
| 153 | <TEXT>PM Printer Manager is a GUI utility for managing printers and drivers.
|
|---|
| 154 | </TEXT>
|
|---|
| 155 | <README EXTRACTFROMPCK="1" format=PLAIN>readme.txt</README>
|
|---|
| 156 | </PAGE>
|
|---|
| 157 |
|
|---|
| 158 | <PAGE INDEX=2 TYPE=CONTAINER>
|
|---|
| 159 | <NEXTBUTTON TARGET=3>~Next</NEXTBUTTON>
|
|---|
| 160 | <TEXT>Select the components to install.
|
|---|
| 161 | </TEXT>
|
|---|
| 162 | </PAGE>
|
|---|
| 163 |
|
|---|
| 164 | <PAGE INDEX=3 TYPE=CONFIGURE>
|
|---|
| 165 | <TEXT>Ready to install.</TEXT>
|
|---|
| 166 | <NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
|
|---|
| 167 | </PAGE>
|
|---|
| 168 |
|
|---|
| 169 | </BODY>
|
|---|
| 170 | </WARPIN>
|
|---|