[93122] | 1 | @ECHO OFF
|
---|
[93097] | 2 | REM $Id: os2_cid_install.cmd 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
| 3 | REM REM @fileREM
|
---|
[93095] | 4 | REM VirtualBox CID Installation - main driver script for boot CD/floppy.
|
---|
| 5 | REM
|
---|
| 6 |
|
---|
[93097] | 7 | REM
|
---|
[98103] | 8 | REM Copyright (C) 2004-2023 Oracle and/or its affiliates.
|
---|
[93097] | 9 | REM
|
---|
[96407] | 10 | REM This file is part of VirtualBox base platform packages, as
|
---|
| 11 | REM available from https://www.virtualbox.org.
|
---|
[93097] | 12 | REM
|
---|
[96407] | 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
|
---|
[93097] | 28 |
|
---|
[93122] | 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
|
---|
[93127] | 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.
|
---|
[93122] | 34 | pause
|
---|
| 35 | cmd.exe
|
---|
| 36 | exit /b 1
|
---|
[93095] | 37 |
|
---|
[93122] | 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 |
|
---|
[93109] | 51 | lvm.exe /NEWMBR:1 && goto lvm_newmbr_ok
|
---|
[93122] | 52 | @echo ** error: Writing a new MBR on disk 1 failed.
|
---|
[93095] | 53 | goto lvm_failed
|
---|
| 54 | :lvm_newmbr_ok
|
---|
| 55 |
|
---|
[93122] | 56 | @REM Depends the default drive name being "[ D1 ]". However it's cosmetical,
|
---|
| 57 | @REM so we don't complain if this fails.
|
---|
[93095] | 58 | lvm.exe "/SETNAME:DRIVE,[ D1 ],BootDrive"
|
---|
| 59 |
|
---|
[93109] | 60 | lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE && goto lvm_create_partition_ok
|
---|
[93122] | 61 | @echo ** error: Creating boot partition on disk 1 failed.
|
---|
[93095] | 62 | goto lvm_failed
|
---|
| 63 | :lvm_create_partition_ok
|
---|
| 64 |
|
---|
[93109] | 65 | lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot && goto lvm_create_volume_ok
|
---|
[93122] | 66 | @echo ** error: Creating boot volume on disk 1 failed.
|
---|
[93095] | 67 | goto lvm_failed
|
---|
| 68 | :lvm_create_volume_ok
|
---|
| 69 |
|
---|
[93109] | 70 | lvm.exe /SETSTARTABLE:VOLUME,OS2Boot && goto lvm_set_startable_ok
|
---|
[93122] | 71 | @echo ** error: Setting boot volume on disk 1 startable failed.
|
---|
[93095] | 72 | goto lvm_failed
|
---|
| 73 | :lvm_set_startable_ok
|
---|
| 74 |
|
---|
[93122] | 75 | @REM Depending on the freespace automatically getting the name "[ FS1 ]".
|
---|
[93109] | 76 | lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]" && goto lvm_create_data_partition_ok
|
---|
[93122] | 77 | @echo ** error: Creating data partition on disk 1 failed.
|
---|
[93095] | 78 | goto lvm_failed
|
---|
| 79 | :lvm_create_data_partition_ok
|
---|
| 80 |
|
---|
[93109] | 81 | lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data && goto lvm_create_data_volume_ok
|
---|
[93122] | 82 | @echo ** error: Creating data volume on disk 1 failed.
|
---|
[93095] | 83 | goto lvm_failed
|
---|
| 84 | :lvm_create_data_volume_ok
|
---|
| 85 |
|
---|
| 86 | REM pause
|
---|
| 87 | lvm.exe /QUERY
|
---|
[93122] | 88 | REM CMD.EXE
|
---|
| 89 | goto done_step1_1
|
---|
[93095] | 90 |
|
---|
| 91 | :lvm_failed
|
---|
[93122] | 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
|
---|
[93095] | 98 | lvm.exe
|
---|
[93122] | 99 | %CDROM%\cid\exe\os2\setboot.exe /B
|
---|
[93095] | 100 | exit
|
---|
| 101 |
|
---|
[93122] | 102 | :done_step1_1
|
---|
[93095] | 103 |
|
---|
[93122] | 104 | :step1_2
|
---|
| 105 | @echo .
|
---|
| 106 | @echo Step 1.2 - Format the volumes.
|
---|
| 107 | @echo .
|
---|
| 108 | cd %CDROM%\os2image\disk_3
|
---|
| 109 | %CDROM%
|
---|
[93095] | 110 |
|
---|
[93122] | 111 | FORMAT.COM C: /FS:HPFS /V:OS2Boot < %CDROM%\VBoxCID\YES.TXT && goto format_boot_ok
|
---|
| 112 | @echo ** error: Formatting C: failed.
|
---|
| 113 | pause
|
---|
[93095] | 114 | :format_boot_ok
|
---|
| 115 |
|
---|
[93122] | 116 | FORMAT.COM D: /FS:JFS /V:Data < %CDROM%\VBoxCID\YES.TXT && goto format_data_ok
|
---|
| 117 | @echo ** error: Formatting D: failed.
|
---|
| 118 | pause
|
---|
[93095] | 119 | :format_data_ok
|
---|
| 120 |
|
---|
[93122] | 121 | cd \
|
---|
| 122 |
|
---|
| 123 | :step1_3
|
---|
| 124 | @echo .
|
---|
| 125 | @echo Step 1.3 - Putting response files and CID tools on C:
|
---|
| 126 | @echo .
|
---|
[93095] | 127 | mkdir C:\VBoxCID
|
---|
| 128 | mkdir C:\OS2
|
---|
[93122] | 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
|
---|
[93095] | 140 |
|
---|
[93122] | 141 | :step1_4
|
---|
| 142 | @echo .
|
---|
| 143 | @echo Step 1.4 - Start OS/2 CID installation.
|
---|
| 144 | @echo .
|
---|
[93095] | 145 | SET REMOTE_INSTALL_STATE=CAS_WARP4
|
---|
[93122] | 146 | cd C:\OS2
|
---|
[93095] | 147 | C:
|
---|
[93127] | 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
|
---|
[93122] | 151 | pause
|
---|
[93095] | 152 | :semaint_ok
|
---|
[93122] | 153 | REM CMD.EXE
|
---|
[93095] | 154 |
|
---|
| 155 | cd C:\VBoxCID
|
---|
[93122] | 156 | C:
|
---|
[93127] | 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
|
---|
[93122] | 160 | pause
|
---|
[93095] | 161 | :seinst_ok
|
---|
[93122] | 162 | REM CMD.EXE
|
---|
[93095] | 163 |
|
---|
[93122] | 164 | :step1_5
|
---|
| 165 | @echo .
|
---|
| 166 | @echo Step 1.5 - Make C: bootable.
|
---|
| 167 | @echo .
|
---|
[93109] | 168 | C:
|
---|
| 169 | cd C:\OS2
|
---|
[93122] | 170 | SYSINSTX.COM C: && goto sysinstx_ok
|
---|
[93095] | 171 | pause
|
---|
| 172 | :sysinstx_ok
|
---|
| 173 |
|
---|
[93122] | 174 | @echo Copying over patched OS2LDR from A:
|
---|
[93109] | 175 | attrib -R -H -S C:\OS2LDR
|
---|
[93122] | 176 | copy C:\OS2LDR C:\OS2LDR.Phase1
|
---|
[93109] | 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
|
---|
[93095] | 182 |
|
---|
[93122] | 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
|
---|
[93095] | 188 |
|
---|
[93122] | 189 | @echo Enabling Alt-F2 driver logging during boot.
|
---|
| 190 | @echo > "C:\ALTF2ON.$$$"
|
---|
[93095] | 191 |
|
---|
[93122] | 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
|
---|
[93095] | 196 |
|
---|
[93131] | 197 | copy C:\CONFIG.SYS C:\VBoxCID\Phase1-end-config.sys
|
---|
| 198 |
|
---|
[93122] | 199 | REM now reboot.
|
---|
| 200 | goto reboot
|
---|
| 201 |
|
---|
| 202 |
|
---|
| 203 | REM
|
---|
[93127] | 204 | REM Phase 2 - Install GRADD drivers (VGA is horribly slow).
|
---|
[93122] | 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 .
|
---|
[93127] | 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
|
---|
[93122] | 237 | pause
|
---|
| 238 | :dspinstl_ok
|
---|
| 239 |
|
---|
| 240 | @REM TODO: Error: 1 Error getting current desktop mode
|
---|
[93127] | 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
|
---|
[93122] | 244 | goto vcfgcid_ok
|
---|
[93127] | 245 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\2.1-Video.log
|
---|
[93122] | 246 | pause
|
---|
| 247 | :vcfgcid_ok
|
---|
| 248 | cd C:\VBoxCID
|
---|
| 249 | C:
|
---|
| 250 |
|
---|
| 251 | :step2_2
|
---|
[93127] | 252 | @echo Install startup.cmd for phase3.
|
---|
| 253 | ren C:\STARTUP.CMD C:\VBoxCID\Phase2-end-startup.cmd
|
---|
[93131] | 254 | copy C:\CONFIG.SYS C:\VBoxCID\Phase2-end-config.sys
|
---|
[93127] | 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
|
---|
[93122] | 290 | @echo .
|
---|
[93127] | 291 | @echo Step 3.1 - Install multimedia.
|
---|
[93122] | 292 | @echo .
|
---|
| 293 | cd C:\mmtemp
|
---|
| 294 | C:
|
---|
[93127] | 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
|
---|
[93122] | 299 | pause
|
---|
| 300 | :mmos2_ok
|
---|
| 301 | cd C:\VBoxCID
|
---|
| 302 |
|
---|
[93127] | 303 | :step3_2
|
---|
[93122] | 304 | @echo .
|
---|
[93127] | 305 | @echo Step 3.2 - Install features.
|
---|
[93122] | 306 | @echo .
|
---|
[93127] | 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
|
---|
[93122] | 309 | @REM does not exit with status 0 on success.
|
---|
| 310 | goto features_ok
|
---|
[93127] | 311 | C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.2-FeatureInstaller.log
|
---|
[93122] | 312 | pause
|
---|
| 313 | :features_ok
|
---|
| 314 |
|
---|
[93127] | 315 | :step3_3
|
---|
[93122] | 316 | @echo .
|
---|
[93127] | 317 | @echo Step 3.3 - Install MPTS.
|
---|
[93122] | 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%
|
---|
[93127] | 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
|
---|
[93122] | 328 | pause
|
---|
| 329 | :mpts_ok
|
---|
| 330 | CD %CDROM%\
|
---|
| 331 | C:
|
---|
| 332 |
|
---|
[93127] | 333 | :step3_4
|
---|
[93122] | 334 | @echo .
|
---|
[93127] | 335 | @echo Step 3.4 - Install TCP/IP.
|
---|
[93122] | 336 | @echo .
|
---|
| 337 | CD %CDROM%\CID\SERVER\TCPAPPS
|
---|
| 338 | %CDROM%
|
---|
[93127] | 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
|
---|
[93122] | 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 |
|
---|
[93127] | 354 | :step3_5
|
---|
[93122] | 355 | @echo .
|
---|
[93127] | 356 | @echo Step 3.5 - Install IBM LAN Requestor/Peer.
|
---|
[93122] | 357 | @echo .
|
---|
| 358 | SET REMOTE_INSTALL_STATE=CAS_OS/2 Peer
|
---|
| 359 | CD %CDROM%\CID\SERVER\IBMLS
|
---|
| 360 | %CDROM%
|
---|
[93127] | 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
|
---|
[93122] | 363 | :ibmlan_ok
|
---|
| 364 | CD %CDROM%\
|
---|
| 365 | C:
|
---|
| 366 |
|
---|
[93127] | 367 | :step3_6
|
---|
[93122] | 368 | @echo .
|
---|
[93127] | 369 | @echo Step 3.6 - Install Netscape.
|
---|
[93122] | 370 | @echo .
|
---|
[93127] | 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.
|
---|
[93131] | 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...
|
---|
[93127] | 377 | goto netscape_ok
|
---|
[93131] | 378 | SET DPATH=%DPATH%;C:\NETSCAPE\SIUTIL;C:\NETSCAPE\PROGRAM;
|
---|
| 379 | IF "x%LANG%x" == "xx" THEN SET LANG=en_US
|
---|
[93127] | 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 .
|
---|
[93148] | 400 | @echo Step 3.8 - Install the test execution service (TXS).
|
---|
[93127] | 401 | @echo .
|
---|
[93109] | 402 | @@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
|
---|
[93148] | 403 | mkdir C:\VBoxValKit
|
---|
[93109] | 404 | mkdir D:\TestArea
|
---|
[93122] | 405 | copy %CDROM%\VBoxValidationKit\*.* C:\VBoxValKit && goto valkit_copy_1_ok
|
---|
[93109] | 406 | pause
|
---|
| 407 | :valkit_copy_1_ok
|
---|
[93122] | 408 | copy %CDROM%\VBoxValidationKit\os2\x86\*.* C:\VBoxValKit && goto valkit_copy_2_ok
|
---|
[93109] | 409 | pause
|
---|
| 410 | :valkit_copy_2_ok
|
---|
| 411 | @@VBOX_COND_ELSE@@
|
---|
[93122] | 412 | @echo Not requested. Skipping.
|
---|
[93109] | 413 | @@VBOX_COND_END@@
|
---|
| 414 |
|
---|
[93148] | 415 | :step3_9
|
---|
[93122] | 416 | @echo .
|
---|
[93127] | 417 | @echo Step 3.9 - Install final startup.cmd and copy over OS2LDR again.
|
---|
[93122] | 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 |
|
---|
[93148] | 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 |
|
---|
[93127] | 448 | :step3_11
|
---|
[93122] | 449 | @echo .
|
---|
[93127] | 450 | @echo Step 3.11 - Cleanup
|
---|
[93122] | 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 |
|
---|
[93127] | 469 | :step3_12
|
---|
[93109] | 470 | @@VBOX_COND_HAS_POST_INSTALL_COMMAND@@
|
---|
[93122] | 471 | @echo .
|
---|
[93127] | 472 | @echo Step 3.12 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@"
|
---|
[93122] | 473 | @echo .
|
---|
[93095] | 474 | cd C:\VBoxCID
|
---|
| 475 | C:
|
---|
[93109] | 476 | @@VBOX_INSERT_POST_INSTALL_COMMAND@@
|
---|
| 477 | @@VBOX_COND_END@@
|
---|
[93095] | 478 |
|
---|
[93131] | 479 | copy C:\CONFIG.SYS C:\VBoxCID\Phase3-end-config.sys
|
---|
[93109] | 480 |
|
---|
[93131] | 481 |
|
---|
[93122] | 482 | REM
|
---|
| 483 | REM Reboot (common to both phases).
|
---|
| 484 | REM
|
---|
| 485 | :reboot
|
---|
| 486 | @echo .
|
---|
| 487 | @echo Reboot (%1)
|
---|
| 488 | @echo .
|
---|
[93095] | 489 | cd C:\OS2
|
---|
| 490 | C:
|
---|
[93122] | 491 |
|
---|
[93131] | 492 | @REM @echo debug
|
---|
| 493 | @REM CMD.EXE
|
---|
[93122] | 494 |
|
---|
[93095] | 495 | SETBOOT /IBD:C
|
---|
[93122] | 496 | pause
|
---|
| 497 | CMD.EXE
|
---|
[93095] | 498 |
|
---|