VirtualBox

source: vbox/trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist

Last change on this file was 106061, checked in by vboxsync, 3 months ago

Copyright year updates by scm.

  • Property svn:keywords set to Id Revision
File size: 5.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (C) 2008-2024 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" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/>
26 <installation-check script="checkPrerequisite()"></installation-check>
27 <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
28 <script>
29//<![CDATA[
30 /* js:pkmk:start */
31 function checkPrerequisite()
32 {
33 try
34 {
35 test = system.version['ProductVersion'];
36 system.log("OS version detected: " + test);
37 result = (system.compareVersions(test, '10.9') >= 0);
38 } catch (e) { system.log(e); result = false; }
39
40 if (!result)
41 {
42 my.result.type = 'Fatal';
43 my.result.title = system.localizedString('UNSUPPORTED_OS_TLE');
44 my.result.message = system.localizedString('UNSUPPORTED_OS_MSG');
45 return result;
46 }
47
48 try
49 {
50 test = system.sysctl('hw.machine');
51 system.log("Hardware architecture detected: " + test);
52 result = (test == '@VBOX_TARGET_ARCH@');
53 } catch (e) { system.log(e); result = false; }
54
55 if (!result)
56 {
57 my.result.type = 'Fatal';
58 my.result.title = system.localizedString('UNSUPPORTED_HW_MACHINE_TLE');
59 my.result.message = system.localizedString('UNSUPPORTED_HW_MACHINE_MSG');
60 return result;
61 }
62
63 try
64 {
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++)
68 {
69 if (runAppArr[i]["FileCreator"] == "VBOX" || runAppArr[i]["FileCreator"] == "VBVM")
70 {
71 result = false;
72 }
73 }
74 system.log("system.applications check => result=" + result);
75 } catch (e) { system.log(e); result = false; }
76
77 if (!result)
78 {
79
80 my.result.type = 'Fatal';
81 my.result.title = system.localizedString('RUNNING_VMS_TLE');
82 my.result.message = system.localizedString('RUNNING_VMS_MSG');
83 return result;
84 }
85
86 system.log("result:" + result);
87 return result;
88 }
89 /* js:pkmk:end */
90//]]>
91 </script>
92 <background file="background.tif" alignment="topleft" scaling="none"/>
93 <welcome file="Welcome.rtf" mime-type="text/rtf" uti="public.rtf"/>
94 <choices-outline>
95 <line choice="choiceVBoxKEXTs"></line>
96 <line choice="choiceVBox"></line>
97 <line choice="choiceVBoxCLI"></line>
98 <line choice="choiceOSXFuseCore"></line>
99 </choices-outline>
100 <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="true" start_visible="true">
101 <pkg-ref id="org.virtualbox.pkg.vboxkexts"></pkg-ref>
102 </choice>
103 <choice id="choiceVBox" title="choiceVBox_title" description="choiceVBox_msg" start_selected="true" start_enabled="false" start_visible="true">
104 <pkg-ref id="org.virtualbox.pkg.virtualbox"></pkg-ref>
105 </choice>
106 <choice id="choiceVBoxCLI" title="choiceVBoxCLI_title" description="choiceVBoxCLI_msg" start_selected="true" start_enabled="true" start_visible="true">
107 <pkg-ref id="org.virtualbox.pkg.virtualboxcli"></pkg-ref>
108 </choice>
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>
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>
115 <pkg-ref id="com.github.osxfuse.pkg.Core" auth="Root">file:./Contents/Packages/OSXFuseCore.pkg</pkg-ref>
116</installer-gui-script>
117
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette