home *** CD-ROM | disk | FTP | other *** search
- /* ARexx script to select the correct archive to upgrade to AWeb-II 3.2
- *
- * Run this script from within AWeb-II version 3.x
- */
-
- options results
-
- if ~show('L','rexxsupport.library') then addlib('rexxsupport.library',0,-30,0)
-
- no31=0
- ver=0
-
- 'get version var awebver'
- if left(awebver,3)<3.1 then no31=1
-
- if no31 then awebpath='AWeb3:'
- else awebpath='AWebPath:'
-
- if open(f,'T:awebupgrade.html','W') then do
- call writeln f,'<html><title>AWeb Upgrade</title>'
- call writeln f,'<body background="file:///' || awebpath || 'docs/awebbg.iff">'
- call writeln f,'<img src="file:///' || awebpath || 'docs/aweb.iff" align=left hspace=10>'
- call writeln f,'<h1>Upgrade to AWeb-II 3.2</h1><br clear=all><br><br>'
- call writeln f,'Checking your original AWeb-II disks...'
- call close f
- 'open "file:///T:awebupgrade.html" reload'
- 'wait all'
- end
-
- do forever
- 'request "AWeb Upgrade" "Put Disk 1 of the original AWeb-II distribution*Ninto any drive" "_Ok|_Cancel"'
- if rc>0 then exit
- volumes=showlist('V')
- if pos('AWEB3.0_DISK1',upper(volumes))>0 then leave
- if pos('AWEB3.1_DISK1',upper(volumes))>0 then do
- ver='3.1'
- leave
- end
- end
-
- if ver=0 then do
- address command
- 'AWeb3.0_Disk1:lhex >nil: -w=T: e AWeb3.0_Disk1:AWeb2.lha AWeb-II'
- 'version >t:awebdiskversion T:AWeb-II'
- 'delete >nil: T:AWeb-II'
- if open(f,'T:awebdiskversion','R') then do
- version=readln(f)
- call close f
- ver=word(version,2)
- end
- 'delete >nil: T:awebdiskversion'
- address
- end
-
- select
- when ver='3.0' then do
- lha='AWeb3032pch.lha'
- size=495
- end
- when ver='3.0b' then do
- lha='AWeb30b32pch.lha'
- size=495
- end
- when ver='3.1' then do
- lha='AWeb3132pch.lha'
- size=267
- end
- otherwise do
- 'request "AWeb Upgrade" "Unknown disk version.*NProgram stopped." "_Ok" NOWAIT'
- exit
- end
- end
-
- if open(f,'T:awebupgrade.html','W') then do
- call writeln f,'<html><title>AWeb Upgrade</title>'
- call writeln f,'<body background="file:///' || awebpath || 'docs/awebbg.iff">'
- call writeln f,'<img src="file:///' || awebpath || 'docs/aweb.iff" align=left hspace=10>'
- call writeln f,'<h1>Upgrade to AWeb-II 3.2</h1><br clear=all><br><br>'
- if no31 then do
- call writeln f,'You are currently running AWeb-II version ' || awebver || '. The 3.2 patch'
- call writeln f,'archive doesn''t contain all changed documentation and other files'
- call writeln f,'for you. You have to install the AWeb 3.1 patch before you can'
- call writeln f,'successfully upgrade to version 3.2.<br><br>'
- call writeln f,'Download and install the <a href="http://www.amitrix.com/AWeb31pch.lha">'
- call writeln f,'AWeb 3.1 patch</a> (680 kB) first.<br><br>'
- call writeln f,'To install this patch, double-click the "Install-AWeb31" icon.<br>'
- call writeln f,'The installation procedure will need the original disks from the'
- call writeln f,'AWeb-II ' || ver || ' distribution.<br><br>'
- call writeln f,'Then you can install the AWeb-II 3.2 patch (see below).<br><br><hr><br>'
- end
- call writeln f,'Your AWeb-II disks contain version ' || ver || '.<br><br>'
- call writeln f,'To upgrade to AWeb-II 3.2 you need'
- call writeln f,'<a href="http://www.amitrix.com/' || lha || '">' || lha || '</a>'
- call writeln f,'(' || size || ' kB).<br><br>'
- call writeln f,'To install this patch, double-click the "Install-AWeb32" icon.<br>'
- call writeln f,'The installation procedure will need the original disks from the'
- call writeln f,'AWeb-II distribution.<br><br>'
- call writeln f,'</html>'
- call close f
- 'open "file:///T:awebupgrade.html" reload'
- end
- else do
- 'request "AWeb Upgrade" "Couldn''t open temporary file.*NProgram stopped." "_Ok" NOWAIT'
- end
-
-