1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | Copyright (C) 2008-2023 Oracle and/or its affiliates.
|
---|
4 |
|
---|
5 | This file is part of VirtualBox base platform packages, as
|
---|
6 | available from https://www.virtualbox.org.
|
---|
7 |
|
---|
8 | This program is free software; you can redistribute it and/or
|
---|
9 | modify it under the terms of the GNU General Public License
|
---|
10 | as published by the Free Software Foundation, in version 3 of the
|
---|
11 | License.
|
---|
12 |
|
---|
13 | This program is distributed in the hope that it will be useful, but
|
---|
14 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
16 | General Public License for more details.
|
---|
17 |
|
---|
18 | You should have received a copy of the GNU General Public License
|
---|
19 | along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
20 |
|
---|
21 | SPDX-License-Identifier: GPL-3.0-only
|
---|
22 | -->
|
---|
23 | <installer-gui-script minSpecVersion="1.0">
|
---|
24 | <title>VirtualBox_title</title>
|
---|
25 | <options customize="allow" allow-external-scripts="false" rootVolumeOnly="true" hostArchitectures="i386"/>
|
---|
26 | <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
|
---|
27 | <!-- This allowes a better error message compared to allowed-os-versions: -->
|
---|
28 | <installation-check script="checkPrerequisites()"></installation-check>
|
---|
29 | <script>
|
---|
30 | /* js:pkmk:start */
|
---|
31 | function checkPrerequisites()
|
---|
32 | {
|
---|
33 | sArch = system.sysctl('hw.machine');
|
---|
34 | system.log("Detected hw arch: " + sArch);
|
---|
35 | sVer = system.version['ProductVersion'];
|
---|
36 | system.log("Detected OS version: " + sVer);
|
---|
37 | if (sArch == 'x86_64')
|
---|
38 | {
|
---|
39 | if (system.compareVersions(sVer, '10.7') >= 0)
|
---|
40 | {
|
---|
41 | system.log("checkPrerequisites returns true");
|
---|
42 | return true;
|
---|
43 | }
|
---|
44 | }
|
---|
45 | system.log("checkPrerequisites returns false!");
|
---|
46 | my.result.type = 'Fatal';
|
---|
47 | my.result.title = system.localizedString('UNSUPPORTED_AMD64_OS_TLE');
|
---|
48 | my.result.message = system.localizedString('UNSUPPORTED_AMD64_OS_MSG');
|
---|
49 | return false;
|
---|
50 | }
|
---|
51 | /* js:pkmk:end */
|
---|
52 | </script>
|
---|
53 | <background file="background.tif" alignment="topleft" scaling="none"/>
|
---|
54 | <welcome file="Welcome.rtf" mime-type="text/rtf" uti="public.rtf"/>
|
---|
55 | <choices-outline>
|
---|
56 | <line choice="choiceVBoxToolsAndServices"></line>
|
---|
57 | <line choice="choiceVBoxKEXTs"></line>
|
---|
58 | </choices-outline>
|
---|
59 |
|
---|
60 | <choice id="choiceVBoxToolsAndServices" title="choiceVBoxToolsAndServices_title" description="choiceVBoxToolsAndServices_msg" start_selected="true" start_enabled="false" start_visible="true">
|
---|
61 | <pkg-ref id="org.virtualbox.pkg.additions.tools-and-services"></pkg-ref>
|
---|
62 | </choice>
|
---|
63 | <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="false" start_visible="true">
|
---|
64 | <pkg-ref id="org.virtualbox.pkg.additions.kexts"></pkg-ref>
|
---|
65 | </choice>
|
---|
66 |
|
---|
67 | <pkg-ref id="org.virtualbox.pkg.additions.tools-and-services" auth="Root">file:./Contents/Packages/VBoxGuestAdditionsToolsAndServices.pkg</pkg-ref>
|
---|
68 | <pkg-ref id="org.virtualbox.pkg.additions.kexts" auth="Root">file:./Contents/Packages/VBoxGuestAdditionsKEXTs.pkg</pkg-ref>
|
---|
69 |
|
---|
70 | </installer-gui-script>
|
---|