Ticket #79: lucide.wis

File lucide.wis, 7.3 KB (added by Chuck McKinnis <mckinnis@…>, 18 years ago)

Updated lucide.wis for WarpIN

Line 
1
2<!-- This is the profile for installing Lucide core and plugins. -->
3
4<WARPIN
5     OS="OS2_3x"
6     CODEPAGE=850
7>
8
9<!-- Every .WPI archive contains one or more packages. -->
10
11<HEAD>
12<TITLE>=("title")</TITLE>
13<REXX NAME=title>
14Call Rxfuncadd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
15Call SysLoadFuncs
16/* get boot drive language */
17_lang = Value('lang',,'os2environment')
18_id = Translate(Left(_lang,2))
19If _id = 'ZH' Then Do
20 _id = Translate(Substr(_lang,3,2))
21 If _id = 'CN' Then _id = 'CX'
22End
23Select
24 When _id = 'DE' Then Do
25  _title = 'Lucide - Document Viewer'
26  _folder = 'Lucide for eCS'
27  _prog = 'Lucide'
28  _readme = 'Lucide Readme'
29  _change = 'Lucide Change Log'
30  _plug_pdf = 'Lucide PDF plugin'
31  _plug_djvu = 'Lucide DjVu plugin'
32  _plug_jpeg = 'Lucide JPEG plugin'
33 End
34 When _id = 'NL' Then Do
35  _title = 'Lucide - Document Bekijker'
36  _folder = 'Lucide for eCS'
37  _prog = 'Lucide'
38  _readme = 'Lucide Readme'
39  _change = 'Lucide Change Log'
40  _plug_pdf = 'Lucide PDF plugin'
41  _plug_djvu = 'Lucide DjVu plugin'
42  _plug_jpeg = 'Lucide JPEG plugin'
43 End
44 When _id = 'FR' Then Do
45  _title = 'Lucide - Afficheur de document'
46  _folder = 'Lucide for eCS'
47  _prog = 'Lucide'
48  _readme = 'Lucide Readme'
49  _change = 'Lucide Change Log'
50  _plug_pdf = 'Lucide PDF plugin'
51  _plug_djvu = 'Lucide DjVu plugin'
52  _plug_jpeg = 'Lucide JPEG plugin'
53 End
54 When _id = 'SV' Then Do
55  _title = 'Lucide - Dokumentvisare'
56  _folder = 'Lucide for eCS'
57  _prog = 'Lucide'
58  _readme = 'Lucide Readme'
59  _change = 'Lucide Change Log'
60  _plug_pdf = 'Lucide PDF plugin'
61  _plug_djvu = 'Lucide DjVu plugin'
62  _plug_jpeg = 'Lucide JPEG plugin'
63 End
64 Otherwise Do
65  _title = 'Lucide - Document Viewer'
66  _folder = 'Lucide for eCS'
67  _prog = 'Lucide'
68  _readme = 'Lucide Readme'
69  _change = 'Lucide Change Log'
70  _plug_pdf = 'Lucide PDF plugin'
71  _plug_djvu = 'Lucide DjVu plugin'
72  _plug_jpeg = 'Lucide JPEG plugin'
73 End
74End
75rc = WirexxPutEnv('title',_title)
76rc = WirexxPutEnv('folder',_folder)
77rc = WirexxPutEnv('prog',_prog)
78rc = WirexxPutEnv('readme',_readme)
79rc = WirexxPutEnv('change',_change)
80rc = WirexxPutEnv('plug_pdf',_plug_pdf)
81rc = WirexxPutEnv('plug_djvu',_plug_djvu)
82rc = WirexxPutEnv('plug_jpeg',_plug_jpeg)
83Return _title
84</REXX>
85<REXX NAME=folder>
86Return WirexxGetEnv('folder')
87</REXX>
88<REXX NAME=prog>
89ans = WirexxShowMessage(WirexxGetEnv('title'),'Make Lucide the default program for PDF files?','0004'x)
90If ans = 6 Then Do
91 /* clear any previous associations */
92 Call SysIni 'USER','PMWP_ASSOC_FILTER','*.PDF','DELETE:'
93 Call SysIni 'USER','PMWP_ASSOC_FILTER','*PDF','DELETE:'
94 Call SysIni 'USER','PMWP_ASSOC_TYPE','Acrobat Document','DELETE:'
95End
96Return WirexxGetEnv('prog')
97</REXX>
98<REXX NAME=readme>
99Return WirexxGetEnv('readme')
100</REXX>
101<REXX NAME=change>
102Return WirexxGetEnv('change')
103</REXX>
104<REXX NAME=plug_pdf>
105Return WirexxGetEnv('plug_pdf')
106</REXX>
107<REXX NAME=plug_djvu>
108Return WirexxGetEnv('plug_djvu')
109</REXX>
110<REXX NAME=plug_jpeg>
111Return WirexxGetEnv('plug_jpeg')
112</REXX>
113<PCK INDEX=1
114     PACKAGEID="netlabs.org\Lucide\Lucide core\0\9\3"
115     TARGET="$(WARPIN_DEFAULTAPPSPATH)\Lucide"
116     BASE
117     TITLE="=("title")"
118     CREATEOBJECT="WPFolder|=("folder")|<WP_DESKTOP>|OBJECTID=<LUCIDEFOLDER>;ICONFILE=$(1)\lucide_fldr_1.ico;ICONNFILE=1,$(1)\lucide_fldr_2.ico;OPEN=DEFAULT;ALWAYSSORT=YES;"
119     CREATEOBJECT="REPLACE WPProgram|=("prog")|<LUCIDEFOLDER>|EXENAME=$(1)\lucide.exe;OBJECTID=<LUCIDEFOLDER_LUCIDEEXE>;PROGTYPE=PM;STARTUPDIR=$(1);ASSOCFILTER=*.PDF,*.DJVU;ASSOCTYPE=Acrobat Document;"
120     CREATEOBJECT="REPLACE WPProgram|=("readme")|<LUCIDEFOLDER>|EXENAME=e.exe;OBJECTID=<LUCIDEFOLDER_README>;PROGTYPE=PM;PARAMETERS="$(1)\readme";STARTUPDIR=$(1);"
121     CREATEOBJECT="REPLACE WPProgram|=("change")|<LUCIDEFOLDER>|EXENAME=e.exe;OBJECTID=<LUCIDEFOLDER_CHANGELOG>;PROGTYPE=PM;PARAMETERS="$(1)\changelog";STARTUPDIR=$(1);"
122     WRITEPROFILE="USER\Lucide\Path|$(1)"
123     CLEARPROFILE="USER\Lucide\Path"
124     SELECT
125     >=("title").</PCK>
126
127<PCK INDEX=2
128     PACKAGEID="netlabs.org\Lucide\Lucide plugin PDF\0\9\3"
129     TARGET="$(1)"
130     TITLE="=("plug_pdf")"
131     REQUIRES=1
132     SELECT | FIXED
133     >=("plug_pdf")</PCK>
134
135<PCK INDEX=3
136     PACKAGEID="netlabs.org\Lucide\Lucide plugin DJVU\0\9\3"
137     TARGET="$(1)"
138     TITLE="=("plug_djvu")"
139     REQUIRES=1
140     SELECT | FIXED
141     >=("plug_djvu")</PCK>
142
143<PCK INDEX=4
144     PACKAGEID="netlabs.org\Lucide\Lucide plugin JPEG\0\9\3"
145     TARGET="$(1)"
146     TITLE="=("plug_jpeg")"
147     REQUIRES=1
148     SELECT | FIXED
149     >=("plug_jpeg")</PCK>
150
151</HEAD>
152
153<!-- Here come the different pages. They are linked by
154     the <NEXTBUTTON> tags, which must have a target.
155     Each page must have a TYPE= attribute, which tells
156     WarpIn what will be visible on that page. -->
157
158<BODY>
159
160<!-- The TYPE_README will show a README text in a multi-line entry field. -->
161
162<PAGE INDEX=1 TYPE=README>
163<NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
164<TEXT>
165Select "Next" to continue.
166Select "Cancel" to abort installation.
167</TEXT>
168
169<README FORMAT=HTML>
170<B>Lucide for eComStation</B>
171<P>
172Lucide is a plugin based document viewer for eComStation. In its first incarnation
173it supports PDF, DjVu and JPEG files but new document types can easily be added to it.
174<P>
175Lucide itself is currently released as binary-only, the plugin sourcecode is available
176so developers can use this as a base for more plugins. The binary is not available
177at netlabs.org, you need an eComStation account to get it.
178<P>
179<BR>
180Features:
181<UL>
182  <LI>PDF, DjVand JPEG Support
183  <LI>Draand Drop Support
184  <LI>Fast and small
185</UL>
186<P>
187<BR>
188For further details please visit the Lucide project homepage:<BR>
189http://svn.netlabs.org/lucide/
190<BR>
191</README>
192</PAGE>
193
194<PAGE INDEX=2 TYPE=README>
195<NEXTBUTTON TARGET=3>~I agree</NEXTBUTTON>
196<TEXT>
197By pressing the "I agree" button, you agree to all terms and conditions to the below licence agreement.
198</TEXT>
199<README FORMAT=HTML>
200<B>LICENSE</B>
201<P>
202Lucide is licensed for use with eComStation only. You are not allowed to
203distribute the product by uploading it to public Internet servers or by any
204other means make it publicly available.
205
206The plugins are released under CDDL/LGPL or GPL, depending on the plugin. See
207http://svn.netlabs.org/lucide/ for more information and source code.
208</README>
209</PAGE>
210
211<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
212
213<PAGE INDEX=3 TYPE=CONTAINER>
214<NEXTBUTTON TARGET=4>~Next</NEXTBUTTON>
215<TEXT>
216Please select the packages which are to be installed. You may change the target paths for the packages.
217</TEXT>
218</PAGE>
219
220
221<!-- The TYPE=CONFIGURE will allow the user to set the CONFIG.SYS and
222     WPS classes/objects stuff. -->
223
224<PAGE INDEX=4 TYPE=CONFIGURE>
225<NEXTBUTTON TARGET=5>~Next</NEXTBUTTON>
226<TEXT>
227
228Please select additional configuration that WarpIN should perform after installing this archive.
229
230</TEXT>
231</PAGE>
232
233<!-- Here's another TYPE=TEXT page before we install.
234     The special target "0" indicates that after this page we
235     should start installation.
236     Note that the TYPE=INSTALL page (which we had in Alpha #3)
237     is no longer supported. -->
238
239<PAGE INDEX=5 TYPE=TEXT>
240<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
241<TEXT>
242
243
244
245Press "Install" to begin installing this archive.</TEXT>
246</PAGE>
247</BODY>
248</WARPIN>
249