Changes

Sun xVM VirtualBox

2,854 bytes added, 10:53, 25 January 2016
VirtualBox
See http://www.virtualbox.org/manual/ch02.html#idp50342400 for installation advice.
 
== VirtualBox 5.0.14 ==
 
I use the --extract switch to extract the MSI files. Then I extract the VBoxGuestAdditions.iso from the common.cab file. I extract the VBoxGuestAdditions.iso to find the updated certificate file.
In order to install the new extensions file it is best to uninstall the old as --replace frequently gives an error. You also have to copy the extensions file to the local hard disk to install as it has to extract as part of the process and you won't allow your WPKG user to write to your network %SOFTWARE% share point.
 
<source lang="xml">
 
<package id="virtualbox"
name="Oracle Virtual Box"
revision="%version%"
reboot="false"
priority="1">
<depends package-id="netinstfolder"/><!--for log file-->
<variable name="version" value="5.0.14" />
<variable name="release" value="105127" />
<variable architecture="x86" name="PRODUCT_CODE" value="{8F6D5610-B5D2-4CF3-90ED-584ABC8B946A}" /> <!-- this changes every version -->
<variable architecture="x64" name="PRODUCT_CODE" value="{82022940-639B-48A3-86D9-B139864105F7}" /> <!-- this changes every version -->
<check type="uninstall" condition="versionequalto" path="Oracle VM VirtualBox %version%" value="%version%"/>
<!-- The virbox directory must be named as virbox.%version% and the release variable must be numeric only as the extpack doesn't include the r -->
<install cmd='certutil.exe -f -addstore "TrustedPublisher" "%SOFTWARE%\virtualbox\virtualbox.%version%\oracle-vbox.cer"'/>
<install architecture="x86" cmd='msiexec /i "%SOFTWARE%\virtualbox\virtualbox.%version%\VirtualBox-%version%-r%release%-MultiArch_x86.msi" ADDLOCAL=VBoxApplication,VBoxUSB,VBoxNetwork /qn /norestart /l*v "%systemdrive%\netinst\virtualbox.log" ' ></install>
<install architecture="x64" cmd='msiexec /i "%SOFTWARE%\virtualbox\virtualbox.%version%\VirtualBox-%version%-r%release%-MultiArch_amd64.msi" ADDLOCAL=VBoxApplication,VBoxUSB,VBoxNetwork /qn /norestart /l*v "%systemdrive%\netinst\virtualbox.log" ' ></install>
<install cmd='%comspec% /c copy /y %SOFTWARE%\virtualbox\virtualbox.%version%\oracle_vm_virtualbox_extension_pack-%VERSION%-%RELEASE%.vbox-extpack c:\netinst ' />
<install cmd='%Programfiles%\Oracle\VirtualBox\vboxmanage.exe extpack install c:\netinst\oracle_vm_virtualbox_extension_pack-%VERSION%-%RELEASE%.vbox-extpack ' />
<upgrade cmd='%Programfiles%\Oracle\VirtualBox\vboxmanage.exe extpack uninstall "Oracle VM VirtualBox Extension Pack" ' />
<upgrade include='install' />
<remove cmd='%Programfiles%\Oracle\VirtualBox\vboxmanage.exe extpack uninstall "Oracle VM VirtualBox Extension Pack" ' />
<remove cmd='MsiExec.exe /X%PRODUCT_CODE% /qn' />
<remove cmd='cmd /c rmdir /s /q "%PROGRAMFILES%\Oracle\VirtualBox\ExtensionPacks" ' ><exit code='any'/></remove>
</package>
 
</source>
== VirtualBox 4.3.6 ==
76
edits