diff options
Diffstat (limited to '')
5 files changed, 176 insertions, 0 deletions
diff --git a/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Conclusion.rtf b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Conclusion.rtf new file mode 100644 index 00000000..66a61b5e --- /dev/null +++ b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Conclusion.rtf @@ -0,0 +1,9 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\vieww10800\viewh8400\viewkind0 +\deftab720 +\pard\pardeftab720\sa240 + +\f0\fs24 \cf0 VirtualBox Guest Addition successfully installed and ready for use.\ +}
\ No newline at end of file diff --git a/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Localizable.strings b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Localizable.strings new file mode 100644 index 00000000..3781727e --- /dev/null +++ b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Localizable.strings @@ -0,0 +1,14 @@ +'VirtualBox_title' = '@VBOX_PRODUCT@'; + +'choiceVBoxKEXTs_title' = 'Kernel Extensions'; +'choiceVBoxKEXTs_msg' = 'Installs the @VBOX_PRODUCT@ Guest Additions Kernel Extensions into /Library/Extensions.'; + +'choiceVBoxToolsAndServices_title' = 'Tools and Services'; +'choiceVBoxToolsAndServices_msg' = 'Installs the @VBOX_PRODUCT@ Guest Additions Tools and Services to /Library/Application Support/VirtualBox Guest Additions.'; + +'UNSUPPORTED_AMD64_OS_TLE' = "Incompatible OS version detected!"; +'UNSUPPORTED_AMD64_OS_MSG' = "VirtualBox Guest Additions require Mac OS X 10.7 or later running in 64-bit mode."; + +'UNSUPPORTED_X86_OS_TLE' = "Incompatible OS version detected!"; +'UNSUPPORTED_X86_OS_MSG' = "The 32-bit VirtualBox Guest Additions are only for Mac OS X 10.7 and earlier running in 32-bit mode."; + diff --git a/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Welcome.rtf b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Welcome.rtf new file mode 100644 index 00000000..344017e3 --- /dev/null +++ b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/Welcome.rtf @@ -0,0 +1,13 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\vieww10800\viewh8400\viewkind0 +\deftab720 +\pard\pardeftab720\sa280 + +\f0\b\fs36 \cf0 @VBOX_PRODUCT@ Guest Additions for Mac OS X +\b0 \ +\pard\pardeftab720\sa240 + +\fs24 \cf0 Welcome to @VBOX_PRODUCT@ Guest Additions @VBOX_VERSION_MAJOR@.@VBOX_VERSION_MINOR@.@VBOX_VERSION_BUILD@ for Mac OS X! This installer will guide you through the installation process.\ +}
\ No newline at end of file diff --git a/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-amd64.dist b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-amd64.dist new file mode 100644 index 00000000..9e66538a --- /dev/null +++ b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-amd64.dist @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2008-2023 Oracle and/or its affiliates. + + This file is part of VirtualBox base platform packages, as + available from https://www.virtualbox.org. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, in version 3 of the + License. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, see <https://www.gnu.org/licenses>. + + SPDX-License-Identifier: GPL-3.0-only +--> +<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') >= 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> diff --git a/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-x86.dist b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-x86.dist new file mode 100644 index 00000000..640081b3 --- /dev/null +++ b/src/VBox/Additions/darwin/Installer/VBoxGuestAdditions_mpkg/distribution-x86.dist @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (C) 2008-2023 Oracle and/or its affiliates. + + This file is part of VirtualBox base platform packages, as + available from https://www.virtualbox.org. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation, in version 3 of the + License. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, see <https://www.gnu.org/licenses>. + + SPDX-License-Identifier: GPL-3.0-only +--> +<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 == 'i386') + { + if (system.compareVersions(sVer, '10.8') < 0) + { + system.log("checkPrerequisites returns true"); + return true; + } + } + system.log("checkPrerequisites returns false!"); + my.result.type = 'Fatal'; + my.result.title = system.localizedString('UNSUPPORTED_X86_OS_TLE'); + my.result.message = system.localizedString('UNSUPPORTED_X86_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> |