source: packaging/lib.wis.tpl@ 736

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

packaging: Added a big warning to the "lib" archive about uninstalling the previous version of the Qt 4 Runtime package.

File size: 12.7 KB
RevLine 
[544]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
[546]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, '.', '\')
[723]87 return ver
[546]88 end
[544]89 end
90 end
91 end
92 end
93 end
[723]94 return ''
[544]95</REXX>
96
[546]97<REXX NAME="GetQt4RuntimePkgVersion">
98 return WirexxGetEnv('Qt4RuntimePkgVersion')
[544]99</REXX>
100
[546]101<REXX NAME="GetPkgPathRefFixed">
102 parse arg aPkgIdUtf8', 'aPkgIdLocal
103 ver = GetPkgVersion(aPkgIdUtf8)
104 if (ver == '') then return 'Unable to determine the installation path'
105 return '$('aPkgIdLocal')'
106
107 /* same as above... */
108 GetPkgVersion: procedure
109 parse arg aPkgId
110 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
111 rc = SysLoadFuncs()
112 WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)
113 if (WarpInDir \== '') then do
114 rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')
115 if (rc == 0) then do
116 do i = 1 to inis.0
117 rc = SysIni(inis.i, 'ALL:', 'apps')
118 if (rc == '') then do
119 do j = 1 to apps.0
120 apps.j = strip(apps.j, 'T', '0'x)
121 if (left(apps.j, length(aPkgId)) == aPkgId) then do
122 /* found the app */
123 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)
124 ver = translate(ver, '.', '\')
[723]125 return ver
[546]126 end
127 end
128 end
129 end
130 end
131 end
[723]132 return ''
[546]133</REXX>
134
135<REXX NAME="GetPkgSelectAttrFixed">
136 /* makes sure the package is selected only if the prerequisite is present */
137 parse arg aPkgId
138 ver = GetPkgVersion(aPkgId)
139 if (ver == '') then return ''
140 return 'SELECT'
141
142 /* same as above... */
143 GetPkgVersion: procedure
144 parse arg aPkgId
145 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')
146 rc = SysLoadFuncs()
147 WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)
148 if (WarpInDir \== '') then do
149 rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')
150 if (rc == 0) then do
151 do i = 1 to inis.0
152 rc = SysIni(inis.i, 'ALL:', 'apps')
153 if (rc == '') then do
154 do j = 1 to apps.0
155 apps.j = strip(apps.j, 'T', '0'x)
156 if (left(apps.j, length(aPkgId)) == aPkgId) then do
157 /* found the app */
158 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)
159 ver = translate(ver, '.', '\')
[723]160 return ver
[546]161 end
162 end
163 end
164 end
165 end
166 end
[723]167 return ''
[546]168</REXX>
169
[736]170<REXX NAME="AskToUninstallPreviousVersion">
171 call WirexxShowMessage ,
172 'Qt 4 Runtime: Warning',,
173 'IMPORTANT NOTICE:'||'0D0A'x||'0D0A'x,
174 'If you have another version of the Qt 4 Runtime package installed on your computer, *PLEASE* cancel this installation now and uninstall the previous version first! Upgrading the existing Qt 4 installation is currently *NOT SUPPORTED*.'||'0D0A'x||'0D0A'x,
175 'The previous version of the Qt 4 Runtime package may be uninstalled using the WarpIn utility which you can start through the Programs menu (Desktop > Local System > Install/Remove > WarpIn > WarpIn) or by typing "warpin" on the command line.'||'0D0A'x||'0D0A'x,,
176 0
177 return ''
178</REXX>
179
[544]180<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
181
182<PCK INDEX=1
183 PACKAGEID="netlabs.org\Qt4\Runtime\${version_path}"
[736]184 TITLE="Runtime=("AskToUninstallPreviousVersion")"
[544]185 NODESELECT
186 REQUIRES="netlabs.org\kLIBC\LIBC 0.6 Runtime\0\6\3"
187 REQUIRES="netlabs.org\GCC4\Runtime\4\4\2\20091204"
188 TARGET="=("GetDLLPath")" FIXED
189 LONGFILENAMES
190 EXECUTE="$(2)\util\UpdateQtSysConf.cmd|Prefix=$(2),Settings=$\(ETC\)/xdg"
191 DEEXECUTE="del $(ETC)\qtsys.conf"
192>Contains Qt runtime libraries. This package is required</PCK>
193
194<PCK INDEX=2
195 PACKAGEID="netlabs.org\Qt4\Installation Utilities\${version_path}"
196 TITLE="Installation Utilities"
197 NODESELECT
198 REQUIRES="1"
199 TARGET="=("GetSysAppPath")\Qt4"
200 LONGFILENAMES
[734]201>Contains installation utilities. This package is required. The installation directory of this package serves as a base directory for all other Qt packages except Runtime, as well as for other Qt 4 installation archives ("dev", "examples" and "doc")</PCK>
[544]202
203<PCK INDEX=3
204 PACKAGEID="netlabs.org\Qt4\Plugins\${version_path}"
205 TITLE="Plugins"
206 NODESELECT
207 REQUIRES="1"
208 TARGET="$(2)\plugins" FIXED
209 LONGFILENAMES
210>Contains standard Qt plugins. This package is required</PCK>
211
212<PCK INDEX=4
213 PACKAGEID="netlabs.org\Qt4\Translations\${version_path}"
214 TITLE="Translations"
215 SELECT
216 REQUIRES="1"
217 TARGET="$(2)\translations" FIXED
218 LONGFILENAMES
219>Contains translations of the Qt runtime. This package is recommended</PCK>
220
221<PCK INDEX=5
222 PACKAGEID="netlabs.org\Qt4\SysTray\${version_path}"
223 TITLE="Extended System Tray widget for XCenter"
[546]224 =("GetPkgSelectAttrFixed Ulrich Möller\XWorkplace\Kernel")
[544]225 REQUIRES="1"
226 REQUIRES="Ulrich M”ller\XWorkplace\Kernel\0\9\9"
[546]227 TARGET="=("GetPkgPathRefFixed Ulrich Möller\XWorkplace\Kernel, Ulrich M”ller\XWorkplace\Kernel")" FIXED
[544]228 LONGFILENAMES
229>Provides support for the system tray to Qt applications. This package is recommended</PCK>
230
231<PCK INDEX=6
232 PACKAGEID="netlabs.org\Qt4\Readme\${version_path}"
233 TITLE="Readmes and Licenses"
234 SELECT
235 TARGET="$(2)" FIXED
236 LONGFILENAMES
237>Contains the readme files and license agreements</PCK>
238
239</HEAD>
240
241<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
242
243<BODY>
244
245<PAGE INDEX=1 TYPE=README>
246<TEXT>Welcome to the Qt 4 Runtime Installation Program!
247
248Please read through the following pages by pressing "Next" to continue or press "Cancel" to abort the installation.</TEXT>
249
250<README FORMAT=HTML>
251<b>Qt is a cross-platform application and UI framework</b>. Using Qt, you can write
252web-enabled applications once and deploy them across desktop, mobile and
253embedded operating systems without rewriting the source code. You can find
254more information about Qt at <code>http://qt.nokia.com/</code>.
255</p><p>
256This package contains the <b>Qt runtime libraries</b> necessary to run applications
257created using the Qt framework versoin 4.
258</p><p>
259Please visit <code>http://svn.netlabs.org/qt4/</code> to learn more about the
260OS/2 version of the Qt framework, get the latest news and updates.
261</p><p>
262Qt framework is Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
263</p><p>
264OS/2 version of the Qt library is Copyright (C) 2009 netlabs.org.
265</p>
266</README>
267
268</PAGE>
269
270
271<PAGE INDEX=2 TYPE=README>
272<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.
273
274Please read the Qt GNU LGPL v. 2.1 license agreement and then press "Next" to read the Qt GNU GPL v. 3.0 license.
275
276More information about Qt licensing models is available at http://qt.nokia.com/products/licensing/</TEXT>
277
278<README FORMAT=FLOW EXTRACTFROMPCK="6">LICENSE.LGPL</README>
279</PAGE>
280
281
282<PAGE INDEX=3 TYPE=README>
[546]283<NEXTBUTTON TARGET="=("CheckQt4RuntimePkg")">~I agree</NEXTBUTTON>
[544]284<TEXT>Please read the Qt GNU GPL v. 3.0 license agreement now.
285
286By 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>
287
288<README FORMAT=FLOW EXTRACTFROMPCK="6">LICENSE.GPL3</README>
289</PAGE>
290
291
292<PAGE INDEX=4 TYPE=CONTAINER>
293<TEXT>Please select the packages which are to be installed.
294
295Note that most package installation paths use the system directories and cannot be changed.</TEXT>
296</PAGE>
297
298
299<!--PAGE INDEX=5 TYPE=CONFIGURE>
300<TEXT>Please select additional configuration that WarpIN should perform after installing this archive.</TEXT>
301</PAGE-->
302
303
304<PAGE INDEX=5 TYPE=TEXT>
305<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
306<TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.
307
308If 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.
309
310To do so, restart XCenter and select "Create new widget" > "Extended system tray" from the XCenter context menu.
311</TEXT>
312</PAGE>
313
314<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
315
316<PAGE INDEX=6 TYPE=TEXT>
317<NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
318<TEXT>
[546]319A different version of the Qt 4 Runtime Libraries is installed on this computer (=("GetQt4RuntimePkgVersion")).
[544]320
321This version cannot be installed over the existing one. You must uninstall the currently installed version first and then retry the installation.
322
323Please press the "Cancel" button now, then start the WarpIn utility and uninstall the currently installed version.
324
325You can start the WarpIn utility through the Programs menu (Desktop > Local System > Install/Remove > WarpIn > WarpIn) or by typing "warpin" on the command line.
326
327Note: 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>
328</PAGE>
329
330
331</BODY>
332</WARPIN>
333
Note: See TracBrowser for help on using the repository browser.