summaryrefslogtreecommitdiffstats
path: root/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-amd64.dist
blob: 467a2e843a4b10c38b211e195e5f912d99f9a7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<!--
#
# Copyright (C) 2008-2013 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
-->
<installer-gui-script minSpecVersion="1.0">
    <title>VirtualBox_title</title>
    <options customize="allow" allow-external-scripts="false" rootVolumeOnly="true" hostArchitectures="i386"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <!-- This allowes a better error message compared to allowed-os-versions: -->
    <installation-check script="checkPrerequisites()"></installation-check>
    <script>
    /* js:pkmk:start */
    function checkPrerequisites()
    {
        sArch = system.sysctl('hw.machine');
        system.log("Detected hw arch:    " + sArch);
        sVer  = system.version['ProductVersion'];
        system.log("Detected OS version: " + sVer);
        if (sArch == 'x86_64')
        {
            if (system.compareVersions(sVer, '10.7') &gt;= 0)
            {
                system.log("checkPrerequisites returns true");
                return true;
            }
        }
        system.log("checkPrerequisites returns false!");
        my.result.type    = 'Fatal';
        my.result.title   = system.localizedString('UNSUPPORTED_AMD64_OS_TLE');
        my.result.message = system.localizedString('UNSUPPORTED_AMD64_OS_MSG');
        return false;
    }
    /* js:pkmk:end */
    </script>
    <background file="background.tif" alignment="topleft" scaling="none"/>
    <welcome file="Welcome.rtf" mime-type="text/rtf" uti="public.rtf"/>
    <choices-outline>
        <line choice="choiceVBoxToolsAndServices"></line>
        <line choice="choiceVBoxKEXTs"></line>
    </choices-outline>

    <choice id="choiceVBoxToolsAndServices" title="choiceVBoxToolsAndServices_title" description="choiceVBoxToolsAndServices_msg" start_selected="true" start_enabled="false" start_visible="true">
        <pkg-ref id="org.virtualbox.pkg.additions.tools-and-services"></pkg-ref>
    </choice>
    <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="false" start_visible="true">
        <pkg-ref id="org.virtualbox.pkg.additions.kexts"></pkg-ref>
    </choice>

    <pkg-ref id="org.virtualbox.pkg.additions.tools-and-services" auth="Root">file:./Contents/Packages/VBoxGuestAdditionsToolsAndServices.pkg</pkg-ref>
    <pkg-ref id="org.virtualbox.pkg.additions.kexts" auth="Root">file:./Contents/Packages/VBoxGuestAdditionsKEXTs.pkg</pkg-ref>

</installer-gui-script>