source: trunk/warpin/lucide_wpi.wis @ 194

Last change on this file since 194 was 194, checked in by Eugene Romanenko, 15 years ago

warpin: require UClip package

File size: 7.4 KB
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?',4)
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\1\0\0"
115     TARGET="$(WARPIN_DEFAULTAPPSPATH)\Lucide"
116     REQUIRES="netlabs.org\UClip\Binaries\0\2\1\0"     
117     BASE
118     TITLE="=("title")"
119     CREATEOBJECT='WPFolder|=("folder")|<WP_DESKTOP>|OBJECTID=<LUCIDEFOLDER>;ICONFILE=$(1)\lucide_fldr_1.ico;ICONNFILE=1,$(1)\lucide_fldr_2.ico;OPEN=DEFAULT;ALWAYSSORT=YES;'
120     CREATEOBJECT='REPLACE WPProgram|=("prog")|<LUCIDEFOLDER>|EXENAME=$(1)\lucide.exe;OBJECTID=<LUCIDEFOLDER_LUCIDEEXE>;PROGTYPE=PM;STARTUPDIR=$(1);ASSOCFILTER=*.PDF,*.DJVU;ASSOCTYPE=Acrobat Document;CCVIEW=YES;'
121     CREATEOBJECT='REPLACE WPProgram|=("readme")|<LUCIDEFOLDER>|EXENAME=e.exe;OBJECTID=<LUCIDEFOLDER_README>;PROGTYPE=PM;PARAMETERS=$(1)\readme;STARTUPDIR=$(1);'
122     CREATEOBJECT='REPLACE WPProgram|=("change")|<LUCIDEFOLDER>|EXENAME=e.exe;OBJECTID=<LUCIDEFOLDER_CHANGELOG>;PROGTYPE=PM;PARAMETERS=$(1)\changelog;STARTUPDIR=$(1);'
123     WRITEPROFILE="USER\Lucide\Path|$(1)"
124     CLEARPROFILE="USER\Lucide\Path"
125     SELECT
126     >=("title").</PCK>
127
128<PCK INDEX=2
129     PACKAGEID="netlabs.org\Lucide\Lucide plugin PDF\1\0\0"
130     TARGET="$(1)"
131     TITLE="=("plug_pdf")"
132     REQUIRES=1
133     SELECT | FIXED
134     >=("plug_pdf")</PCK>
135
136<PCK INDEX=3
137     PACKAGEID="netlabs.org\Lucide\Lucide plugin DJVU\1\0\0"
138     TARGET="$(1)"
139     TITLE="=("plug_djvu")"
140     REQUIRES=1
141     SELECT | FIXED
142     >=("plug_djvu")</PCK>
143
144<PCK INDEX=4
145     PACKAGEID="netlabs.org\Lucide\Lucide plugin JPEG\1\0\0"
146     TARGET="$(1)"
147     TITLE="=("plug_jpeg")"
148     REQUIRES=1
149     SELECT | FIXED
150     >=("plug_jpeg")</PCK>
151
152</HEAD>
153
154<!-- Here come the different pages. They are linked by
155     the <NEXTBUTTON> tags, which must have a target.
156     Each page must have a TYPE= attribute, which tells
157     WarpIn what will be visible on that page. -->
158
159<BODY>
160
161<!-- The TYPE_README will show a README text in a multi-line entry field. -->
162
163<PAGE INDEX=1 TYPE=README>
164<NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
165<TEXT>
166Select "Next" to continue.
167Select "Cancel" to abort installation.
168</TEXT>
169
170<README FORMAT=HTML>
171<B>Lucide for eComStation</B>
172<P>
173Lucide is a plugin based document viewer for eComStation. In its first incarnation
174it supports PDF, DjVu and JPEG files but new document types can easily be added to it.
175<P>
176Lucide itself is currently released as binary-only, the plugin sourcecode is available
177so developers can use this as a base for more plugins. The binary is not available
178at netlabs.org, you need an eComStation account to get it.
179<P>
180<BR>
181Features:
182<UL>
183  <LI>PDF, DjVu and JPEG Support
184  <LI>Drag and Drop Support
185  <LI>Fast and small
186</UL>
187<P>
188<BR>
189For further details please visit the Lucide project homepage:<BR>
190http://svn.netlabs.org/lucide/
191<BR>
192</README>
193</PAGE>
194
195<PAGE INDEX=2 TYPE=README>
196<NEXTBUTTON TARGET=3>~I agree</NEXTBUTTON>
197<TEXT>
198By pressing the "I agree" button, you agree to all terms and conditions to the below licence agreement.
199</TEXT>
200<README FORMAT=HTML>
201<B>LICENSE</B>
202<P>
203Lucide is licensed for use with eComStation only. You are not allowed to
204distribute the product by uploading it to public Internet servers or by any
205other means make it publicly available.
206
207The plugins are released under CDDL/LGPL or GPL, depending on the plugin. See
208http://svn.netlabs.org/lucide/ for more information and source code.
209</README>
210</PAGE>
211
212<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
213
214<PAGE INDEX=3 TYPE=CONTAINER>
215<NEXTBUTTON TARGET=4>~Next</NEXTBUTTON>
216<TEXT>
217Please select the packages which are to be installed. You may change the target paths for the packages.
218</TEXT>
219</PAGE>
220
221
222<!-- The TYPE=CONFIGURE will allow the user to set the CONFIG.SYS and
223     WPS classes/objects stuff. -->
224
225<PAGE INDEX=4 TYPE=CONFIGURE>
226<NEXTBUTTON TARGET=5>~Next</NEXTBUTTON>
227<TEXT>
228
229Please select additional configuration that WarpIN should perform after installing this archive.
230
231</TEXT>
232</PAGE>
233
234<!-- Here's another TYPE=TEXT page before we install.
235     The special target "0" indicates that after this page we
236     should start installation.
237     Note that the TYPE=INSTALL page (which we had in Alpha #3)
238     is no longer supported. -->
239
240<PAGE INDEX=5 TYPE=TEXT>
241<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
242<TEXT>
243
244
245
246Press "Install" to begin installing this archive.</TEXT>
247</PAGE>
248</BODY>
249</WARPIN>
250
Note: See TracBrowser for help on using the repository browser.