source: packaging/lib.wis.tpl@ 820

Last change on this file since 820 was 820, checked in by Dmitry A. Kuminov, 15 years ago

packaging: Attempted to solve a possible broken installation (see comment 1 of #172) by making the "Installation Utilities" package path fixed and allowing to change the "Development" package path instead.

File size: 10.9 KB
Line 
1<WARPIN VERSION="0.9.20" OS="OS2_4x">
2
3<HEAD>
4
5<TITLE>Qt Runtime Libraries ${version} (${date})</TITLE>
6
7<REXX NAME="GetDLLPath">
8 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
9 rc = SysLoadFuncs()
10 ret = SysBootDrive()'\OS2\DLL'
11 bestPath = SysBootDrive()'\ecs\dll'
12 config_sys = SysBootDrive()'\config.sys'
13 do while lines(config_sys)
14 line = linein(config_sys)
15 if (left(line, 8) == 'LIBPATH=') then do
16 /* locate the previous occurence of path */
17 libpath = translate(substr(line, 9))
18 path = translate(bestPath)
19 l = length(path)
20 found = 0; p = 1
21 do while (\found)
22 p = pos(path, libpath, p)
23 if (p == 0) then leave
24 cb = ''; ca = ''
25 /*<*/
26 if (p > 1) then cb = substr(libpath, p - 1, 1)
27 if (p + l <= length(libpath)) then ca = substr(libpath, p + l, 1)
28 /*>*/
29 found = (cb == '' | cb == ';') & (ca == '' | ca == ';')
30 if (\found) then p = p + 1
31 end
32 if (found) then do
33 ret = bestPath
34 leave
35 end
36 end
37 end
38 return ret
39</REXX>
40
41<REXX NAME="GetDocPath">
42 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
43 rc = SysLoadFuncs()
44 ret = SysBootDrive()'\OS2\DOC'
45 bestPath = SysBootDrive()'\ecs\DOC'
46 curDir = directory()
47 if (directory(bestPath) \== '') then ret = bestPath
48 call directory curdir
49 return ret
50</REXX>
51
52<REXX NAME="GetSysAppPath">
53 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
54 rc = SysLoadFuncs()
55 ret = SysBootDrive()'\OS2\APPS'
56 bestPath = SysBootDrive()'\ecs\SYSTEM'
57 curDir = directory()
58 if (directory(bestPath) \== '') then ret = bestPath
59 call directory curdir
60 return ret
61</REXX>
62
63<REXX NAME="CheckQt4RuntimePkg">
64 ver = GetPkgVersion('netlabs.org\Qt4\Runtime')
65 call WirexxPutEnv 'Qt4RuntimePkgVersion', ver
66 if (ver == '') then return 4
67 return 6
68
69 /* same as below... */
70 GetPkgVersion: procedure
71 parse arg aPkgId
72 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
73 rc = SysLoadFuncs()
74 WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)
75 if (WarpInDir \== '') then do
76 rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')
77 if (rc == 0) then do
78 do i = 1 to inis.0
79 rc = SysIni(inis.i, 'ALL:', 'apps')
80 if (rc == '') then do
81 do j = 1 to apps.0
82 apps.j = strip(apps.j, 'T', '0'x)
83 if (left(apps.j, length(aPkgId)) == aPkgId) then do
84 /* found the app */
85 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)
86 ver = translate(ver, '.', '\')
87 return ver
88 end
89 end
90 end
91 end
92 end
93 end
94 return ''
95</REXX>
96
97<REXX NAME="GetQt4RuntimePkgVersion">
98 return WirexxGetEnv('Qt4RuntimePkgVersion')
99</REXX>
100
101<REXX NAME="AskToUninstallPreviousVersion">
102 call WirexxShowMessage ,
103 'Qt 4 Runtime: Warning',,
104 'IMPORTANT NOTICE:',
105 ||'0D0A'x||'0D0A'x,
106 ||'If you have another version of the Qt 4 Runtime package installed on',
107 'your computer, *PLEASE* cancel this installation now and uninstall',
108 'the previous version first! Upgrading the existing Qt 4 installation',
109 'is currently *NOT SUPPORTED*.',
110 ||'0D0A'x||'0D0A'x,
111 ||'The previous version of the Qt 4 Runtime package may be uninstalled',
112 'using the WarpIn utility which you can start through the Programs menu',
113 '(Desktop > Local System > Install/Remove > WarpIn > WarpIn) or by',
114 'typing "warpin" in the command prompt.',
115 ||'0D0A'x||'0D0A'x,
116 ||'Please note that some Qt files may still remain in your system after',
117 'uninstallation and interfere with the new install. In order to avoid possible',
118 'problems, please search for the following files on a drive where Qt 4',
119 'was previously installed and delete them if found:'||'0D0A'x||'0D0A'x,
120 ||'- Qt*4.dll'||'0D0A'x,
121 ||'- qt*.conf'||'0D0A'x,
122 ||'0D0A'x,
123 ||'Sorry for the inconvenience. It is mostly caused by various',
124 'limitations of WarpIn. The next version of Qt 4 for OS/2 will be',
125 'distributed in RPM format which will solve most current installation',
126 'problems. See http://svn.netlabs.org/rpm for more information about',
127 'RPM for OS/2.'||'0D0A'x||'0D0A'x,,
128 0
129 return ''
130</REXX>
131
132<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
133
134<PCK INDEX=1
135 PACKAGEID="netlabs.org\Qt4\Runtime\${version_path}"
136 TITLE="Runtime=("AskToUninstallPreviousVersion")"
137 NODESELECT
138 REQUIRES="netlabs.org\kLIBC\LIBC 0.6 Runtime\0\6\3"
139 REQUIRES="netlabs.org\GCC4\Runtime\4\4\2\20091204"
140 TARGET="=("GetDLLPath")" FIXED
141 LONGFILENAMES
142 EXECUTE="$(2)\util\UpdateQtSysConf.cmd|Prefix=$(2),Settings=$\(ETC\)/xdg"
143 DEEXECUTE="del $(ETC)\qtsys.conf"
144>Contains Qt runtime libraries. This package is required</PCK>
145
146<PCK INDEX=2
147 PACKAGEID="netlabs.org\Qt4\Installation Utilities\${version_path}"
148 TITLE="Installation Utilities"
149 NODESELECT
150 REQUIRES="1"
151 TARGET="=("GetSysAppPath")\Qt4" FIXED
152 LONGFILENAMES
153>Contains installation utilities. This package is required</PCK>
154
155<PCK INDEX=3
156 PACKAGEID="netlabs.org\Qt4\Plugins\${version_path}"
157 TITLE="Plugins"
158 NODESELECT
159 REQUIRES="1"
160 TARGET="$(2)\plugins" FIXED
161 LONGFILENAMES
162>Contains standard Qt plugins. This package is required</PCK>
163
164<PCK INDEX=4
165 PACKAGEID="netlabs.org\Qt4\Translations\${version_path}"
166 TITLE="Translations"
167 SELECT
168 REQUIRES="1"
169 TARGET="$(2)\translations" FIXED
170 LONGFILENAMES
171>Contains translations of the Qt runtime. This package is recommended</PCK>
172
173<${disable_tag_begin}PCK INDEX=5
174 PACKAGEID="netlabs.org\Qt4\SysTray\${version_path}"
175 TITLE="Extended System Tray widget for XCenter"
176 SELECT
177 REQUIRES="1"
178 REQUIRES="Ulrich Mᅵller\XWorkplace\Kernel\0\9\9"
179 TARGET="$(Ulrich Mᅵller\XWorkplace\Kernel)" FIXED
180 LONGFILENAMES
181>Provides support for the system tray to Qt applications. This package is recommended</PCK${disable_tag_end}>
182
183<PCK INDEX=6
184 PACKAGEID="netlabs.org\Qt4\Readme\${version_path}"
185 TITLE="Readmes and Licenses"
186 SELECT
187 TARGET="$(2)" FIXED
188 LONGFILENAMES
189>Contains the readme files and license agreements</PCK>
190
191</HEAD>
192
193<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
194
195<BODY>
196
197<PAGE INDEX=1 TYPE=README>
198<TEXT>Welcome to the Qt 4 Runtime Installation Program!
199
200Please read through the following pages by pressing "Next" to continue or press "Cancel" to abort the installation.</TEXT>
201
202<README FORMAT=HTML>
203<b>Qt is a cross-platform application and UI framework</b>. Using Qt, you can write
204web-enabled applications once and deploy them across desktop, mobile and
205embedded operating systems without rewriting the source code. You can find
206more information about Qt at <code>http://qt.nokia.com/</code>.
207</p><p>
208This package contains the <b>Qt runtime libraries</b> necessary to run applications
209created using the Qt framework versoin 4.
210</p><p>
211Please visit <code>http://svn.netlabs.org/qt4/</code> to learn more about the
212OS/2 version of the Qt framework, get the latest news and updates.
213</p><p>
214Qt framework is Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
215</p><p>
216OS/2 version of the Qt library is Copyright (C) 2009 netlabs.org.
217</p>
218</README>
219
220</PAGE>
221
222
223<PAGE INDEX=2 TYPE=README>
224<TEXT>You may use the Qt framework version 4 under the following licenses that are both free of charge: Qt GNU LGPL v. 2.1 or Qt GNU GPL v. 3.0.
225
226Please read the Qt GNU LGPL v. 2.1 license agreement and then press "Next" to read the Qt GNU GPL v. 3.0 license.
227
228More information about Qt licensing models is available at http://qt.nokia.com/products/licensing/</TEXT>
229
230<README FORMAT=FLOW EXTRACTFROMPCK="6">LICENSE.LGPL</README>
231</PAGE>
232
233
234<PAGE INDEX=3 TYPE=README>
235<NEXTBUTTON TARGET="=("CheckQt4RuntimePkg")">~I agree</NEXTBUTTON>
236<TEXT>Please read the Qt GNU GPL v. 3.0 license agreement now.
237
238By pressing the "I agree" button, you agree to all terms and conditions to either the below license agreement or to the license agreement shown on the previous page, or to both.</TEXT>
239
240<README FORMAT=FLOW EXTRACTFROMPCK="6">LICENSE.GPL3</README>
241</PAGE>
242
243
244<PAGE INDEX=4 TYPE=CONTAINER>
245<TEXT>Please select the packages which are to be installed.
246
247Note that most package installation paths use the system directories and cannot be changed.</TEXT>
248</PAGE>
249
250
251<!--PAGE INDEX=5 TYPE=CONFIGURE>
252<TEXT>Please select additional configuration that WarpIN should perform after installing this archive.</TEXT>
253</PAGE-->
254
255
256<${disable_tag_begin}PAGE INDEX=5 TYPE=TEXT>
257<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
258<TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.
259
260If you selected the Extended System Tray widget package for isntallation then you will need to add this widget to your XCenter or eCenter after the installation is complete to make it available to Qt applications.
261
262To do so, restart XCenter and select "Create new widget" > "Extended system tray" from the XCenter context menu.
263</TEXT>
264</PAGE${disable_tag_end}>
265
266<${enable_tag_begin}PAGE INDEX=5 TYPE=TEXT>
267<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
268<TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.</TEXT>
269</PAGE${enable_tag_end}>
270
271<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
272
273<PAGE INDEX=6 TYPE=TEXT>
274<NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
275<TEXT>
276A different version of the Qt 4 Runtime Libraries is installed on this computer (=("GetQt4RuntimePkgVersion")).
277
278This version cannot be installed over the existing one. You must uninstall the currently installed version first and then retry the installation.
279
280Please press the "Cancel" button now, then start the WarpIn utility and uninstall the currently installed version.
281
282You can start the WarpIn utility through the Programs menu (Desktop > Local System > Install/Remove > WarpIn > WarpIn) or by typing "warpin" on the command line.
283
284Note: Having two or more different versions of the Qt 4 Runtime Libraries installed together is not supported, but if you really need it and understand all the risks, please use the ZIP installation packages instead.</TEXT>
285</PAGE>
286
287
288</BODY>
289</WARPIN>
290
Note: See TracBrowser for help on using the repository browser.