1 | @ECHO OFF
|
---|
2 | REM $Id: os2_cid_install.cmd 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
3 | REM REM @fileREM
|
---|
4 | REM VirtualBox CID Installation - main driver script for boot CD/floppy.
|
---|
5 | REM
|
---|
6 |
|
---|
7 | REM
|
---|
8 | REM Copyright (C) 2004-2024 Oracle and/or its affiliates.
|
---|
9 | REM
|
---|
10 | REM This file is part of VirtualBox base platform packages, as
|
---|
11 | REM available from https://www.virtualbox.org.
|
---|
12 | REM
|
---|
13 | REM This program is free software; you can redistribute it and/or
|
---|
14 | REM modify it under the terms of the GNU General Public License
|
---|
15 | REM as published by the Free Software Foundation, in version 3 of the
|
---|
16 | REM License.
|
---|
17 | REM
|
---|
18 | REM This program is distributed in the hope that it will be useful, but
|
---|
19 | REM WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | REM General Public License for more details.
|
---|
22 | REM
|
---|
23 | REM You should have received a copy of the GNU General Public License
|
---|
24 | REM along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | REM
|
---|
26 | REM SPDX-License-Identifier: GPL-3.0-only
|
---|
27 | REM
|
---|
28 |
|
---|
29 | REM Check the phase argument and jump to the right section of the file.
|
---|
30 | if "%1" == "PHASE1" goto phase1
|
---|
31 | if "%1" == "PHASE2" goto phase2
|
---|
32 | if "%1" == "PHASE3" goto phase3
|
---|
33 | @echo ** error: invalid or missing parameter. Expected PHASE1, PHASE2 or PHASE3 as the first parameter to the script.
|
---|
34 | pause
|
---|
35 | cmd.exe
|
---|
36 | exit /b 1
|
---|
37 |
|
---|
38 | REM
|
---|
39 | REM Phase 1 - Base system installation.
|
---|
40 | REM
|
---|
41 | :phase1
|
---|
42 | SET CDROM=S:
|
---|
43 |
|
---|
44 | @echo on
|
---|
45 | @echo .
|
---|
46 | @echo Step 1.1 - Partition the disk.
|
---|
47 | @echo .
|
---|
48 | cd %CDROM%\os2image\disk_6
|
---|
49 | %CDROM%
|
---|
50 |
|
---|
51 | lvm.exe /NEWMBR:1 && goto lvm_newmbr_ok
|
---|
52 | @echo ** error: Writing a new MBR on disk 1 failed.
|
---|
53 | goto lvm_failed
|
---|
54 | :lvm_newmbr_ok
|
---|
55 |
|
---|
56 | @REM Depends the default drive name being "[ D1 ]". However it's cosmetical,
|
---|
57 | @REM so we don't complain if this fails.
|
---|
58 | lvm.exe "/SETNAME:DRIVE,[ D1 ],BootDrive"
|
---|
59 |
|
---|
60 | lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE && goto lvm_create_partition_ok
|
---|
61 | @echo ** error: Creating boot partition on disk 1 failed.
|
---|
62 | goto lvm_failed
|
---|
63 | :lvm_create_partition_ok
|
---|
64 |
|
---|
65 | lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot && goto lvm_create_volume_ok
|
---|
66 | @echo ** error: Creating boot volume on disk 1 failed.
|
---|
67 | goto lvm_failed
|
---|
68 | :lvm_create_volume_ok
|
---|
69 |
|
---|
70 | lvm.exe /SETSTARTABLE:VOLUME,OS2Boot && goto lvm_set_startable_ok
|
---|
71 | @echo ** error: Setting boot volume on disk 1 startable failed.
|
---|
72 | goto lvm_failed
|
---|
73 | :lvm_set_startable_ok
|
---|
74 |
|
---|
75 | @REM Depending on the freespace automatically getting the name "[ FS1 ]".
|
---|
76 | lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]" && goto lvm_create_data_partition_ok
|
---|
77 | @echo ** error: Creating data partition on disk 1 failed.
|
---|
78 | goto lvm_failed
|
---|
79 | :lvm_create_data_partition_ok
|
---|
80 |
|
---|
81 | lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data && goto lvm_create_data_volume_ok
|
---|
82 | @echo ** error: Creating data volume on disk 1 failed.
|
---|
83 | goto lvm_failed
|
---|
84 | :lvm_create_data_volume_ok
|
---|
85 |
|
---|
86 | REM pause
|
---|
87 | lvm.exe /QUERY
|
---|
88 | REM CMD.EXE
|
---|
89 | goto done_step1_1
|
---|
90 |
|
---|
91 | :lvm_failed
|
---|
92 | @echo .
|
---|
93 | @echo An LVM operation failed (see above).
|
---|
94 | @echo The process requires a blank disk with no partitions. Starting LVM
|
---|
95 | @echo so you can manually correct this.
|
---|
96 | @echo .
|
---|
97 | pause
|
---|
98 | lvm.exe
|
---|
99 | %CDROM%\cid\exe\os2\setboot.exe /B
|
---|
100 | exit
|
---|
101 |
|
---|
102 | :done_step1_1
|
---|
103 |
|
---|
104 | :step1_2
|
---|
105 | @echo .
|
---|
106 | @echo Step 1.2 - Format the volumes.
|
---|
107 | @echo .
|
---|
108 | cd %CDROM%\os2image\disk_3
|
---|
109 | %CDROM%
|
---|
110 |
|
---|
111 | FORMAT.COM C: /FS:HPFS /V:OS2Boot < %CDROM%\VBoxCID\YES.TXT && goto format_boot_ok
|
---|
112 | @echo ** error: Formatting C: failed.
|
---|
113 | pause
|
---|
114 | :format_boot_ok
|
---|
115 |
|
---|
116 | FORMAT.COM D: /FS:JFS /V:Data < %CDROM%\VBoxCID\YES.TXT && goto format_data_ok
|
---|
117 | @echo ** error: Formatting D: failed.
|
---|
118 | pause
|
---|
119 | :format_data_ok
|
---|
120 |
|
---|
121 | cd \
|
---|
122 |
|
---|
123 | :step1_3
|
---|
124 | @echo .
|
---|
125 | @echo Step 1.3 - Putting response files and CID tools on C:
|
---|
126 | @echo .
|
---|
127 | mkdir C:\VBoxCID
|
---|
128 | mkdir C:\OS2
|
---|
129 | copy %CDROM%\cid\exe\os2\*.* C:\VBoxCID
|
---|
130 | copy %CDROM%\cid\dll\os2\*.* C:\VBoxCID
|
---|
131 | copy %CDROM%\os2image\disk_2\inst32.dll C:\VBoxCID
|
---|
132 | copy %CDROM%\VBoxCID\*.* C:\VBoxCID && goto copy_1_ok
|
---|
133 | @echo ** error: Copying CID stuff from CDROM to C: failed (#1).
|
---|
134 | pause
|
---|
135 | :copy_1_ok
|
---|
136 | copy %CDROM%\VBoxCID.CMD C:\VBoxCID && goto copy_2_ok
|
---|
137 | @echo ** error: Copying CID stuff from CDROM to C: failed (#2).
|
---|
138 | pause
|
---|
139 | :copy_2_ok
|
---|
140 |
|
---|
141 | :step1_4
|
---|
142 | @echo .
|
---|
143 | @echo Step 1.4 - Start OS/2 CID installation.
|
---|
144 | @echo .
|
---|
145 | SET REMOTE_INSTALL_STATE=CAS_WARP4
|
---|
146 | cd C:\OS2
|
---|
147 | C:
|
---|
148 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
149 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- C:\VBoxCID\SEMAINT.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.1-Maint.log /T:C:\OS2 && goto semaint_ok
|
---|
150 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\1.4.1-Maint.log
|
---|
151 | pause
|
---|
152 | :semaint_ok
|
---|
153 | REM CMD.EXE
|
---|
154 |
|
---|
155 | cd C:\VBoxCID
|
---|
156 | C:
|
---|
157 | @REM Treat 0xff02 as a success status. It seems to mean that a reboot is required.
|
---|
158 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xff02 -- C:\VBoxCID\SEINST.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.2-CIDInst.log /R:C:\VBoxCID\OS2.RSP /T:A:\ && goto seinst_ok
|
---|
159 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\1.4.2-CIDInst.log
|
---|
160 | pause
|
---|
161 | :seinst_ok
|
---|
162 | REM CMD.EXE
|
---|
163 |
|
---|
164 | :step1_5
|
---|
165 | @echo .
|
---|
166 | @echo Step 1.5 - Make C: bootable.
|
---|
167 | @echo .
|
---|
168 | C:
|
---|
169 | cd C:\OS2
|
---|
170 | SYSINSTX.COM C: && goto sysinstx_ok
|
---|
171 | pause
|
---|
172 | :sysinstx_ok
|
---|
173 |
|
---|
174 | @echo Copying over patched OS2LDR from A:
|
---|
175 | attrib -R -H -S C:\OS2LDR
|
---|
176 | copy C:\OS2LDR C:\OS2LDR.Phase1
|
---|
177 | del C:\OS2LDR
|
---|
178 | copy A:\OS2LDR C:\OS2LDR && goto copy_os2ldr_ok
|
---|
179 | pause
|
---|
180 | :copy_os2ldr_ok
|
---|
181 | attrib +R +H +S C:\OS2LDR
|
---|
182 |
|
---|
183 | @REM This copy is for the end of phase 2 as someone replaces it.
|
---|
184 | copy A:\OS2LDR C:\VBoxCID && goto copy_os2ldr_2_ok
|
---|
185 | pause
|
---|
186 | :copy_os2ldr_2_ok
|
---|
187 | attrib +r C:\VBoxCID\OS2LDR
|
---|
188 |
|
---|
189 | @echo Enabling Alt-F2 driver logging during boot.
|
---|
190 | @echo > "C:\ALTF2ON.$$$"
|
---|
191 |
|
---|
192 | @echo Install startup.cmd for phase2.
|
---|
193 | @echo C:\VBoxCID\OS2_UTIL.EXE --tee-to-backdoor --tee-to-file C:\VBoxCID\Phase2.log --append -- C:\OS2\CMD.EXE /C C:\VBoxCID\VBoxCID.CMD PHASE2> C:\STARTUP.CMD && goto phase2_startup_ok
|
---|
194 | pause
|
---|
195 | :phase2_startup_ok
|
---|
196 |
|
---|
197 | copy C:\CONFIG.SYS C:\VBoxCID\Phase1-end-config.sys
|
---|
198 |
|
---|
199 | REM now reboot.
|
---|
200 | goto reboot
|
---|
201 |
|
---|
202 |
|
---|
203 | REM
|
---|
204 | REM Phase 2 - Install GRADD drivers (VGA is horribly slow).
|
---|
205 | REM
|
---|
206 | :phase2
|
---|
207 | SET CDROM=E:
|
---|
208 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
209 | SET CDROM=D:
|
---|
210 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
211 | SET CDROM=F:
|
---|
212 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
213 | SET CDROM=G:
|
---|
214 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
215 | SET CDROM=H:
|
---|
216 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
217 | SET CDROM=S:
|
---|
218 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase2_found_cdrom
|
---|
219 | @echo ** error: Unable to find the CDROM drive
|
---|
220 | pause
|
---|
221 | CMD
|
---|
222 | SET CDROM=E:
|
---|
223 | :phase2_found_cdrom
|
---|
224 | cd C:\VBoxCID
|
---|
225 | C:
|
---|
226 |
|
---|
227 | @echo on
|
---|
228 |
|
---|
229 | :step2_1
|
---|
230 | @echo .
|
---|
231 | @echo Step 2.1 - Install the video driver.
|
---|
232 | @echo .
|
---|
233 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
234 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- C:\OS2\INSTALL\DspInstl.EXE /PD:C:\OS2\INSTALL\GENGRADD.DSC /S:%CDROM%\OS2IMAGE /T:C: /RES:1024X768X16777216 /U && goto dspinstl_ok
|
---|
235 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\OS2\INSTALL\DSPINSTL.LOG
|
---|
236 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\OS2\INSTALL\GRADD.LOG
|
---|
237 | pause
|
---|
238 | :dspinstl_ok
|
---|
239 |
|
---|
240 | @REM TODO: Error: 1 Error getting current desktop mode
|
---|
241 | @REM UPDATE: This is probably not working because SVGA.EXE doesn't want to play along with our graphics adapter,
|
---|
242 | @REM so it looks like there is no simple way of changing the resolution or select a better monitor.
|
---|
243 | call VCfgCID.CMD /L1:C:\VBoxCID\2.1-Video.log /L2:C:\VBoxCID\2.1-Video-2.log /RES:1024X768X16777216 /MON:548
|
---|
244 | goto vcfgcid_ok
|
---|
245 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\2.1-Video.log
|
---|
246 | pause
|
---|
247 | :vcfgcid_ok
|
---|
248 | cd C:\VBoxCID
|
---|
249 | C:
|
---|
250 |
|
---|
251 | :step2_2
|
---|
252 | @echo Install startup.cmd for phase3.
|
---|
253 | ren C:\STARTUP.CMD C:\VBoxCID\Phase2-end-startup.cmd
|
---|
254 | copy C:\CONFIG.SYS C:\VBoxCID\Phase2-end-config.sys
|
---|
255 | @echo C:\VBoxCID\OS2_UTIL.EXE --tee-to-backdoor --tee-to-file C:\VBoxCID\Phase3.log --append -- C:\OS2\CMD.EXE /C C:\VBoxCID\VBoxCID.CMD PHASE3> C:\STARTUP.CMD && goto phase3_startup_ok
|
---|
256 | pause
|
---|
257 | :phase3_startup_ok
|
---|
258 |
|
---|
259 | REM now reboot.
|
---|
260 | goto reboot
|
---|
261 |
|
---|
262 |
|
---|
263 | REM
|
---|
264 | REM Phase 2 - The rest of the installation running of the base install with fast GRADD drivers.
|
---|
265 | REM
|
---|
266 | :phase3
|
---|
267 | SET CDROM=E:
|
---|
268 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
269 | SET CDROM=D:
|
---|
270 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
271 | SET CDROM=F:
|
---|
272 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
273 | SET CDROM=G:
|
---|
274 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
275 | SET CDROM=H:
|
---|
276 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
277 | SET CDROM=S:
|
---|
278 | IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
|
---|
279 | @echo ** error: Unable to find the CDROM drive
|
---|
280 | pause
|
---|
281 | CMD
|
---|
282 | SET CDROM=E:
|
---|
283 | :phase3_found_cdrom
|
---|
284 | cd C:\VBoxCID
|
---|
285 | C:
|
---|
286 |
|
---|
287 | @echo on
|
---|
288 |
|
---|
289 | :step3_1
|
---|
290 | @echo .
|
---|
291 | @echo Step 3.1 - Install multimedia.
|
---|
292 | @echo .
|
---|
293 | cd C:\mmtemp
|
---|
294 | C:
|
---|
295 | @REM Does not have any /L, /L1, or /L2 options. Fixed log file: C:\MINSTALL.LOG.
|
---|
296 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
297 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- MInstall.EXE /M /R:C:\VBoxCID\MMOS2.RSP && goto mmos2_ok
|
---|
298 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\MINSTALL.LOG
|
---|
299 | pause
|
---|
300 | :mmos2_ok
|
---|
301 | cd C:\VBoxCID
|
---|
302 |
|
---|
303 | :step3_2
|
---|
304 | @echo .
|
---|
305 | @echo Step 3.2 - Install features.
|
---|
306 | @echo .
|
---|
307 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
308 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\os2image\fi /R:C:\OS2\INSTALL\FIBASE.RSP /L1:C:\VBoxCID\3.2-FeatureInstaller.log /R2:C:\VBoxCID\OS2.RSP
|
---|
309 | @REM does not exit with status 0 on success.
|
---|
310 | goto features_ok
|
---|
311 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.2-FeatureInstaller.log
|
---|
312 | pause
|
---|
313 | :features_ok
|
---|
314 |
|
---|
315 | :step3_3
|
---|
316 | @echo .
|
---|
317 | @echo Step 3.3 - Install MPTS.
|
---|
318 | @echo .
|
---|
319 | @REM If we want to use non-standard drivers like the intel ones, copy the .NIF- and
|
---|
320 | @REM .OS2-files to C:\IBMCOM\MACS before launching the installer (needs creating first).
|
---|
321 | @REM Note! Does not accept /L2:.
|
---|
322 | @REM Note! Omitting /TU:C in hope that it solves the lan install failure (no netbeui configured in mpts).
|
---|
323 | CD %CDROM%\CID\SERVER\MPTS
|
---|
324 | %CDROM%
|
---|
325 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
326 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- %CDROM%\CID\SERVER\MPTS\MPTS.EXE /R:C:\VBoxCID\MPTS.RSP /S:%CDROM%\CID\SERVER\MPTS /T:C: /L1:C:\VBoxCID\3.3-Mpts.log && goto mpts_ok
|
---|
327 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.3-Mpts.log
|
---|
328 | pause
|
---|
329 | :mpts_ok
|
---|
330 | CD %CDROM%\
|
---|
331 | C:
|
---|
332 |
|
---|
333 | :step3_4
|
---|
334 | @echo .
|
---|
335 | @echo Step 3.4 - Install TCP/IP.
|
---|
336 | @echo .
|
---|
337 | CD %CDROM%\CID\SERVER\TCPAPPS
|
---|
338 | %CDROM%
|
---|
339 | @REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
|
---|
340 | C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\CID\SERVER\TCPAPPS\INSTALL /R:%CDROM%\CID\SERVER\TCPAPPS\INSTALL\TCPINST.RSP /L1:C:\VBoxCID\3.4-tcp.log /L2:C:\VBoxCID\3.4-tcp-2.log && goto tcp_ok
|
---|
341 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.4-tcp.log
|
---|
342 | pause
|
---|
343 | :tcp_ok
|
---|
344 | CD %CDROM%\
|
---|
345 | C:
|
---|
346 |
|
---|
347 | CD %CDROM%\CID\SERVER\TCPAPPS\INSTALL
|
---|
348 | %CDROM%
|
---|
349 | C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\TCPAPPS\INSTALL\makecmd.exe C:\TCPIP en_US C:\MPTS && goto makecmd_ok
|
---|
350 | pause
|
---|
351 | :makecmd_ok
|
---|
352 | cd %CDROM%\
|
---|
353 |
|
---|
354 | :step3_5
|
---|
355 | @echo .
|
---|
356 | @echo Step 3.5 - Install IBM LAN Requestor/Peer.
|
---|
357 | @echo .
|
---|
358 | SET REMOTE_INSTALL_STATE=CAS_OS/2 Peer
|
---|
359 | CD %CDROM%\CID\SERVER\IBMLS
|
---|
360 | %CDROM%
|
---|
361 | C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\IBMLS\LANINSTR.EXE /REQ /R:C:\VBoxCID\IBMLan.rsp /L1:C:\VBoxCID\3.5-IBMLan.log /L2:C:\VBoxCID\3.5-IBMLan-2.log && goto ibmlan_ok
|
---|
362 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.5-IBMLan.log
|
---|
363 | :ibmlan_ok
|
---|
364 | CD %CDROM%\
|
---|
365 | C:
|
---|
366 |
|
---|
367 | :step3_6
|
---|
368 | @echo .
|
---|
369 | @echo Step 3.6 - Install Netscape.
|
---|
370 | @echo .
|
---|
371 | CD C:\VBoxCID
|
---|
372 | C:
|
---|
373 | %CDROM%
|
---|
374 | @REM Skipping as it hangs after a "Message file not found." error. (The DPATH amendment doesn't help.) Logs give no clue.
|
---|
375 | @REM The install works fine after the phase3 reboot. Next log message then is "NS46EXIT QLTOBMCONVERT en_US, rc=0x0000",
|
---|
376 | @REM so maybe it is related to the LANG environment variable or Locale? Hmm. LANG seems to be set...
|
---|
377 | goto netscape_ok
|
---|
378 | SET DPATH=%DPATH%;C:\NETSCAPE\SIUTIL;C:\NETSCAPE\PROGRAM;
|
---|
379 | IF "x%LANG%x" == "xx" THEN SET LANG=en_US
|
---|
380 | C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\NETSCAPE\INSTALL.EXE /X /A:I /TU:C: /C:%CDROM%\CID\SERVER\NETSCAPE\NS46.ICF /S:%CDROM%\CID\SERVER\NETSCAPE /R:C:\VBoxCID\Netscape.RSP /L1:C:\VBoxCID\3.6-Netscape.log /L2:C:\VBoxCID\3.6-Netscape-2.log && goto netscape_ok
|
---|
381 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.6-Netscape.log
|
---|
382 | pause
|
---|
383 | :netscape_ok
|
---|
384 | CD %CDROM%\
|
---|
385 | C:
|
---|
386 |
|
---|
387 | :step3_7
|
---|
388 | @echo .
|
---|
389 | @echo Step 3.7 - Install feature installer.
|
---|
390 | @echo .
|
---|
391 | @REM No /L2: support.
|
---|
392 | @REM The /NN option is to make it not fail if netscape is missing.
|
---|
393 | C:\VBoxCID\OS2_UTIL.EXE -- C:\OS2\INSTALL\WSFI\FiSetup.EXE /B:C: /S:C:\OS2\INSTALL\WSFI\FISETUP /NN /L1:C:\VBoxCID\3.7-FiSetup.log && goto fisetup_ok
|
---|
394 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.7-FiSetup.log
|
---|
395 | pause
|
---|
396 | :fisetup_ok
|
---|
397 |
|
---|
398 | :step3_8
|
---|
399 | @echo .
|
---|
400 | @echo Step 3.8 - Install the test execution service (TXS).
|
---|
401 | @echo .
|
---|
402 | @@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
|
---|
403 | mkdir C:\VBoxValKit
|
---|
404 | mkdir D:\TestArea
|
---|
405 | copy %CDROM%\VBoxValidationKit\*.* C:\VBoxValKit && goto valkit_copy_1_ok
|
---|
406 | pause
|
---|
407 | :valkit_copy_1_ok
|
---|
408 | copy %CDROM%\VBoxValidationKit\os2\x86\*.* C:\VBoxValKit && goto valkit_copy_2_ok
|
---|
409 | pause
|
---|
410 | :valkit_copy_2_ok
|
---|
411 | @@VBOX_COND_ELSE@@
|
---|
412 | @echo Not requested. Skipping.
|
---|
413 | @@VBOX_COND_END@@
|
---|
414 |
|
---|
415 | :step3_9
|
---|
416 | @echo .
|
---|
417 | @echo Step 3.9 - Install final startup.cmd and copy over OS2LDR again.
|
---|
418 | @echo .
|
---|
419 | attrib -r -h -s C:\STARTUP.CMD
|
---|
420 | copy C:\VBoxCID\STARTUP.CMD C:\ && goto final_startup_ok
|
---|
421 | pause
|
---|
422 | :final_startup_ok
|
---|
423 |
|
---|
424 | attrib -r -h -s C:\OS2LDR
|
---|
425 | if not exist C:\VBoxCID\OS2LDR pause
|
---|
426 | if not exist C:\VBoxCID\OS2LDR goto final_os2ldr_ok
|
---|
427 | copy C:\OS2LDR C:\OS2LDR.Phase2
|
---|
428 | del C:\OS2LDR
|
---|
429 | copy C:\VBoxCID\OS2LDR C:\OS2LDR && goto final_os2ldr_ok
|
---|
430 | pause
|
---|
431 | :final_os2ldr_ok
|
---|
432 | attrib +r +h +s C:\OS2LDR
|
---|
433 |
|
---|
434 | :step3_10
|
---|
435 | @REM Putting this after placing the final Startup.cmd so we can test the
|
---|
436 | @REM installer's ability to parse and modify it.
|
---|
437 | @echo .
|
---|
438 | @echo Step 3.10 - Install guest additions.
|
---|
439 | @echo .
|
---|
440 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@
|
---|
441 | %CDROM%\VBoxAdditions\OS2\VBoxOs2AdditionsInstall.exe --do-install && goto addition_install_ok
|
---|
442 | pause
|
---|
443 | :addition_install_ok
|
---|
444 | @@VBOX_COND_ELSE@@
|
---|
445 | @echo Not requested. Skipping.
|
---|
446 | @@VBOX_COND_END@@
|
---|
447 |
|
---|
448 | :step3_11
|
---|
449 | @echo .
|
---|
450 | @echo Step 3.11 - Cleanup
|
---|
451 | @echo .
|
---|
452 | del /N C:\*.bio
|
---|
453 | del /N C:\*.i13
|
---|
454 | del /N C:\*.snp
|
---|
455 | del /N C:\CONFIG.ADD
|
---|
456 | mkdir C:\MMTEMP 2>nul
|
---|
457 | del /N C:\MMTEMP\*.*
|
---|
458 | @REM This is only needed if we don't install mmos2:
|
---|
459 | @REM for %%i in (acpadd2 azt16dd azt32dd csbsaud es1688dd es1788dd es1868dd es1888dd es688dd jazzdd mvprobdd mvprodd sb16d2 sbawed2 sbd2 sbp2d2 sbpd2) do del /N C:\MMTEMP\OS2\DRIVERS\%%i\*.*
|
---|
460 | @REM for %%i in (acpadd2 azt16dd azt32dd csbsaud es1688dd es1788dd es1868dd es1888dd es688dd jazzdd mvprobdd mvprodd sb16d2 sbawed2 sbd2 sbp2d2 sbpd2) do rmdir C:\MMTEMP\OS2\DRIVERS\%%i
|
---|
461 | @REM rmdir C:\MMTEMP\OS2\DRIVERS
|
---|
462 | @REM rmdir C:\MMTEMP\OS2
|
---|
463 | rmdir C:\MMTEMP
|
---|
464 | copy C:\CONFIG.SYS C:\VBoxCID || goto skip_sys_cleanup
|
---|
465 | del /N C:\*.SYS
|
---|
466 | copy C:\VBoxCID\CONFIG.SYS C:\
|
---|
467 | :skip_sys_cleanup
|
---|
468 |
|
---|
469 | :step3_12
|
---|
470 | @@VBOX_COND_HAS_POST_INSTALL_COMMAND@@
|
---|
471 | @echo .
|
---|
472 | @echo Step 3.12 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@"
|
---|
473 | @echo .
|
---|
474 | cd C:\VBoxCID
|
---|
475 | C:
|
---|
476 | @@VBOX_INSERT_POST_INSTALL_COMMAND@@
|
---|
477 | @@VBOX_COND_END@@
|
---|
478 |
|
---|
479 | copy C:\CONFIG.SYS C:\VBoxCID\Phase3-end-config.sys
|
---|
480 |
|
---|
481 |
|
---|
482 | REM
|
---|
483 | REM Reboot (common to both phases).
|
---|
484 | REM
|
---|
485 | :reboot
|
---|
486 | @echo .
|
---|
487 | @echo Reboot (%1)
|
---|
488 | @echo .
|
---|
489 | cd C:\OS2
|
---|
490 | C:
|
---|
491 |
|
---|
492 | @REM @echo debug
|
---|
493 | @REM CMD.EXE
|
---|
494 |
|
---|
495 | SETBOOT /IBD:C
|
---|
496 | pause
|
---|
497 | CMD.EXE
|
---|
498 |
|
---|