source: trunk/warpin/lucide_wpi.wis @ 434

Last change on this file since 434 was 434, checked in by dmik, 11 years ago

WPI: Make sure creation of WPS object cannot be canceled (to avoid WPS association inconsistency that takes place otherwise, see #128 for details). Fixes ticket:128.

File size: 7.9 KB
RevLine 
[73]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>
[109]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
[433]34 When _id = 'NL' Then Do
[109]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>
[141]89ans = WirexxShowMessage(WirexxGetEnv('title'),'Make Lucide the default program for PDF files?',4)
[109]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>
[73]113<PCK INDEX=1
[433]114     PACKAGEID="netlabs.org\Lucide\Lucide core\1\3\2\0"
[73]115     TARGET="$(WARPIN_DEFAULTAPPSPATH)\Lucide"
116     BASE
[109]117     TITLE="=("title")"
[141]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;'
[186]119     CREATEOBJECT='REPLACE WPProgram|=("prog")|<LUCIDEFOLDER>|EXENAME=$(1)\lucide.exe;OBJECTID=<LUCIDEFOLDER_LUCIDEEXE>;PROGTYPE=PM;STARTUPDIR=$(1);ASSOCFILTER=*.PDF,*.DJVU;ASSOCTYPE=Acrobat Document;CCVIEW=YES;'
[141]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);'
[109]122     WRITEPROFILE="USER\Lucide\Path|$(1)"
123     CLEARPROFILE="USER\Lucide\Path"
[73]124     SELECT
[109]125     >=("title").</PCK>
[73]126
127<PCK INDEX=2
[433]128     PACKAGEID="netlabs.org\Lucide\Lucide plugin PDF\1\3\2\0"
[109]129     TARGET="$(1)"
130     TITLE="=("plug_pdf")"
[73]131     REQUIRES=1
132     SELECT | FIXED
[109]133     >=("plug_pdf")</PCK>
[73]134
135<PCK INDEX=3
[433]136     PACKAGEID="netlabs.org\Lucide\Lucide plugin DJVU\1\3\2\0"
[109]137     TARGET="$(1)"
138     TITLE="=("plug_djvu")"
[73]139     REQUIRES=1
140     SELECT | FIXED
[109]141     >=("plug_djvu")</PCK>
[73]142
143<PCK INDEX=4
[433]144     PACKAGEID="netlabs.org\Lucide\Lucide plugin JPEG\1\3\2\0"
[109]145     TARGET="$(1)"
146     TITLE="=("plug_jpeg")"
[73]147     REQUIRES=1
148     SELECT | FIXED
[109]149     >=("plug_jpeg")</PCK>
[73]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>
[79]180Features:
[73]181<UL>
[110]182  <LI>PDF, DjVu and JPEG Support
183  <LI>Drag and Drop Support
[105]184  <LI>Fast and small
[73]185</UL>
186<P>
187<BR>
[79]188For further details please visit the Lucide project homepage:<BR>
[73]189http://svn.netlabs.org/lucide/
190<BR>
191</README>
192</PAGE>
193
194<PAGE INDEX=2 TYPE=README>
[434]195<NEXTBUTTON TARGET=3>~Next</NEXTBUTTON>
[73]196<TEXT>
[434]197The following list describes what is new in this version of Lucide.
198</TEXT>
199<README FORMAT=PLAIN EXTRACTFROMPCK="1">changelog</README>
200</PAGE>
201
202<PAGE INDEX=3 TYPE=README>
203<NEXTBUTTON TARGET=4>~I agree</NEXTBUTTON>
204<TEXT>
[73]205By pressing the "I agree" button, you agree to all terms and conditions to the below licence agreement.
206</TEXT>
207<README FORMAT=HTML>
208<B>LICENSE</B>
209<P>
[433]210Starting with version 1.3.0 Mensys BV and Serenity Systems International
[416]211have agreed in opensourcing Lucide, while still investing in the product.
[433]212Netlabs.org would like to express it's gratitude toward Mensys BV and
[416]213Serenity Systems International.</P>
214<P>
215Lucide as of version 1.3.0 is released and distributed under CDDL/LGPL.</P>
216<P>
[75]217The plugins are released under CDDL/LGPL or GPL, depending on the plugin. See
[416]218http://svn.netlabs.org/lucide/ for more information and source code.</P>
[73]219</README>
220</PAGE>
221
222<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
223
[434]224<PAGE INDEX=4 TYPE=CONTAINER>
225<NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
[73]226<TEXT>
[433]227Please select the packages which are to be installed. You may change the target paths for the packages.
[73]228</TEXT>
229</PAGE>
230
231
232<!-- The TYPE=CONFIGURE will allow the user to set the CONFIG.SYS and
[434]233     WPS classes/objects stuff.
[73]234
[434]235     NOTE that we skip this target since 1.32 to avoid inconsistency that could
236     happen should the user deselect creation of WPS objects (see ticket:128
237     for details). -->
238
239<PAGE INDEX=5 TYPE=CONFIGURE>
240<NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
[73]241<TEXT>
242
243Please select additional configuration that WarpIN should perform after installing this archive.
244
245</TEXT>
246</PAGE>
247
248<!-- Here's another TYPE=TEXT page before we install.
249     The special target "0" indicates that after this page we
250     should start installation.
251     Note that the TYPE=INSTALL page (which we had in Alpha #3)
252     is no longer supported. -->
253
[434]254<PAGE INDEX=6 TYPE=TEXT>
[73]255<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
256<TEXT>
257
258
259
260Press "Install" to begin installing this archive.</TEXT>
261</PAGE>
262</BODY>
263</WARPIN>
264
Note: See TracBrowser for help on using the repository browser.