[31655] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
[98103] | 3 | Copyright (C) 2008-2023 Oracle and/or its affiliates.
|
---|
[96407] | 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
|
---|
[31655] | 22 | -->
|
---|
| 23 | <installer-gui-script minSpecVersion="1.0">
|
---|
| 24 | <title>VirtualBox_title</title>
|
---|
[95297] | 25 | <options customize="allow" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/>
|
---|
[31655] | 26 | <installation-check script="checkPrerequisite()"></installation-check>
|
---|
[42744] | 27 | <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
|
---|
[31655] | 28 | <script>
|
---|
[50588] | 29 | //<![CDATA[
|
---|
[31655] | 30 | /* js:pkmk:start */
|
---|
| 31 | function checkPrerequisite()
|
---|
| 32 | {
|
---|
| 33 | try
|
---|
| 34 | {
|
---|
[56936] | 35 | test = system.version['ProductVersion'];
|
---|
| 36 | system.log("OS version detected: " + test);
|
---|
[61522] | 37 | result = (system.compareVersions(test, '10.9') >= 0);
|
---|
[42987] | 38 | } catch (e) { system.log(e); result = false; }
|
---|
[31655] | 39 |
|
---|
[42987] | 40 | if (!result)
|
---|
[31655] | 41 | {
|
---|
[42987] | 42 | my.result.type = 'Fatal';
|
---|
[56936] | 43 | my.result.title = system.localizedString('UNSUPPORTED_OS_TLE');
|
---|
| 44 | my.result.message = system.localizedString('UNSUPPORTED_OS_MSG');
|
---|
[42987] | 45 | return result;
|
---|
[31655] | 46 | }
|
---|
| 47 |
|
---|
| 48 | try
|
---|
| 49 | {
|
---|
[56936] | 50 | test = system.sysctl('hw.machine');
|
---|
| 51 | system.log("Hardware architecture detected: " + test);
|
---|
[94866] | 52 | result = (test == '@VBOX_TARGET_ARCH@');
|
---|
[42987] | 53 | } catch (e) { system.log(e); result = false; }
|
---|
[31655] | 54 |
|
---|
[42987] | 55 | if (!result)
|
---|
[31655] | 56 | {
|
---|
[42987] | 57 | my.result.type = 'Fatal';
|
---|
[56936] | 58 | my.result.title = system.localizedString('UNSUPPORTED_HW_MACHINE_TLE');
|
---|
| 59 | my.result.message = system.localizedString('UNSUPPORTED_HW_MACHINE_MSG');
|
---|
[42987] | 60 | return result;
|
---|
[31655] | 61 | }
|
---|
| 62 |
|
---|
[42987] | 63 | try
|
---|
[31655] | 64 | {
|
---|
[95297] | 65 | /* Embedded scripts are not available here. Instead, run command to check for running VMs or running VBOX instance */
|
---|
| 66 | runAppArr = system.applications.all()
|
---|
| 67 | for (let i = 0; i < runAppArr.length; i++)
|
---|
[50572] | 68 | {
|
---|
[95297] | 69 | if (runAppArr[i]["FileCreator"] == "VBOX" || runAppArr[i]["FileCreator"] == "VBVM")
|
---|
| 70 | {
|
---|
| 71 | result = false;
|
---|
| 72 | }
|
---|
[50572] | 73 | }
|
---|
[95297] | 74 | system.log("system.applications check => result=" + result);
|
---|
[42987] | 75 | } catch (e) { system.log(e); result = false; }
|
---|
[31655] | 76 |
|
---|
[42987] | 77 | if (!result)
|
---|
| 78 | {
|
---|
[51142] | 79 |
|
---|
[42984] | 80 | my.result.type = 'Fatal';
|
---|
| 81 | my.result.title = system.localizedString('RUNNING_VMS_TLE');
|
---|
| 82 | my.result.message = system.localizedString('RUNNING_VMS_MSG');
|
---|
[42987] | 83 | return result;
|
---|
[31655] | 84 | }
|
---|
[42987] | 85 |
|
---|
| 86 | system.log("result:" + result);
|
---|
[31655] | 87 | return result;
|
---|
| 88 | }
|
---|
| 89 | /* js:pkmk:end */
|
---|
[50588] | 90 | //]]>
|
---|
[31655] | 91 | </script>
|
---|
| 92 | <background file="background.tif" alignment="topleft" scaling="none"/>
|
---|
[42744] | 93 | <welcome file="Welcome.rtf" mime-type="text/rtf" uti="public.rtf"/>
|
---|
[31655] | 94 | <choices-outline>
|
---|
| 95 | <line choice="choiceVBoxKEXTs"></line>
|
---|
| 96 | <line choice="choiceVBox"></line>
|
---|
| 97 | <line choice="choiceVBoxCLI"></line>
|
---|
[76010] | 98 | <line choice="choiceOSXFuseCore"></line>
|
---|
[31655] | 99 | </choices-outline>
|
---|
[93054] | 100 | <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="true" start_visible="true">
|
---|
[31655] | 101 | <pkg-ref id="org.virtualbox.pkg.vboxkexts"></pkg-ref>
|
---|
| 102 | </choice>
|
---|
[42744] | 103 | <choice id="choiceVBox" title="choiceVBox_title" description="choiceVBox_msg" start_selected="true" start_enabled="false" start_visible="true">
|
---|
[31655] | 104 | <pkg-ref id="org.virtualbox.pkg.virtualbox"></pkg-ref>
|
---|
| 105 | </choice>
|
---|
[42744] | 106 | <choice id="choiceVBoxCLI" title="choiceVBoxCLI_title" description="choiceVBoxCLI_msg" start_selected="true" start_enabled="true" start_visible="true">
|
---|
[31655] | 107 | <pkg-ref id="org.virtualbox.pkg.virtualboxcli"></pkg-ref>
|
---|
| 108 | </choice>
|
---|
[76010] | 109 | <choice id="choiceOSXFuseCore" title="choiceOSXFuseCore_title" description="choiceOSXFuseCore_msg" start_selected="true" start_enabled="true" start_visible="true">
|
---|
| 110 | <pkg-ref id="com.github.osxfuse.pkg.Core"></pkg-ref>
|
---|
| 111 | </choice>
|
---|
[31655] | 112 | <pkg-ref id="org.virtualbox.pkg.vboxkexts" auth="Root">file:./Contents/Packages/VBoxKEXTs.pkg</pkg-ref>
|
---|
| 113 | <pkg-ref id="org.virtualbox.pkg.virtualbox" auth="Root">file:./Contents/Packages/VirtualBox.pkg</pkg-ref>
|
---|
| 114 | <pkg-ref id="org.virtualbox.pkg.virtualboxcli" auth="Root">file:./Contents/Packages/VirtualBoxCLI.pkg</pkg-ref>
|
---|
[76010] | 115 | <pkg-ref id="com.github.osxfuse.pkg.Core" auth="Root">file:./Contents/Packages/OSXFuseCore.pkg</pkg-ref>
|
---|
[31655] | 116 | </installer-gui-script>
|
---|
[42744] | 117 |
|
---|