distribution.dist revision fb27aa740466280f820e13e238bc6dd0b477eb37
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync<?xml version="1.0" encoding="UTF-8"?>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync<!--
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync#
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync# Copyright (C) 2008-2010 Oracle Corporation
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync#
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync# Use only with permission.
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync#
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync-->
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync<installer-gui-script minSpecVersion="1.0">
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <title>VirtualBox_title</title>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <installation-check script="checkPrerequisite()"></installation-check>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <domains enable_anywhere="true"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <script>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync /* js:pkmk:start */
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync function checkPrerequisite()
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync try
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync test = system.sysctl('hw.machine');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync system.log("Hardware architecture detected: " + test);
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync result = !(test == 'i386' || test == 'x86_64');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync } catch (e) { system.log(e); }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync if(result)
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.type = 'Fatal';
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.title = system.localizedString('UNSUPPORTED_HW_MACHINE_TLE');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.message = system.localizedString('UNSUPPORTED_HW_MACHINE_MSG');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync return result;
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync try
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync test = system.version['ProductVersion'];
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync system.log("OS version detected: " + test);
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync result = !(system.compareVersions(test, '10.5') >= 0);
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync } catch (e) { system.log(e); }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync if(result)
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.type = 'Fatal';
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.title = system.localizedString('UNSUPPORTED_OS_TLE');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.message = system.localizedString('UNSUPPORTED_OS_MSG');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync return result;
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync try
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync result = system.run('checkforrunningvms') == '1';
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync } catch (e) { system.log(e); }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync if(result)
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync {
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.type = 'Fatal';
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.title = system.localizedString('RUNNING_VMS_TLE');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync my.result.message = system.localizedString('RUNNING_VMS_MSG');
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync return result;
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync }
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync /* js:pkmk:end */
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </script>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <background file="background.tif" alignment="topleft" scaling="none"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <welcome file="Welcome.html"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <license file="License.rtf"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <conclusion file="Conclusion.html"/>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <choices-outline>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <line choice="choiceVBoxKEXTs"></line>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <line choice="choiceVBoxStartup"></line>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <line choice="choiceVBox"></line>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <line choice="choiceVBoxCLI"></line>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </choices-outline>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="false" start_visible="true">
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.vboxkexts"></pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </choice>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <choice id="choiceVBoxStartup" title="choiceVBoxStartup_title" description="choiceVBoxStartup_msg" start_selected="true" start_enabled="false" start_visible="true">
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.vboxstartupitems"></pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </choice>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <choice id="choiceVBox" title="choiceVBox_title" description="choiceVBox_msg" start_selected="true" start_enabled="false" start_visible="true">
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.virtualbox"></pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </choice>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <choice id="choiceVBoxCLI" title="choiceVBoxCLI_title" description="choiceVBoxCLI_msg" start_selected="true" start_enabled="true" start_visible="true">
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.virtualboxcli"></pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync </choice>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.vboxkexts" auth="Root">file:/Contents/Packages/VBoxKEXTs.pkg</pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.vboxstartupitems" auth="Root">file:/Contents/Packages/VBoxStartupItems.pkg</pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.virtualbox" auth="Root">file:/Contents/Packages/VirtualBox.pkg</pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync <pkg-ref id="org.virtualbox.pkg.virtualboxcli" auth="Root">file:/Contents/Packages/VirtualBoxCLI.pkg</pkg-ref>
fb27aa740466280f820e13e238bc6dd0b477eb37vboxsync</installer-gui-script>