6
edits
Changes
no edit summary
</package>
</packages>
</source>
== VirtualBox Extension Pack==
It can be installed by using the following command, but therefor you always have to update the licente code. You get the licence code by executing the command without the accept-license parameter in a Windows command line window.
<source lang="xml">
<install timeout='30' cmd='"%PROGRAMFILES%\Oracle\VirtualBox\VBoxManage.exe" extpack install --replace "%SOFTWARE%\VirtualBox\Oracle_VM_VirtualBox_Extension_Pack-%version%.vbox-extpack" --accept-license=715c7246dc0f779ceab39446812362b2f9bf64a55ed5d3a905f053cfab36da9e' />
</source>
The better solution is to use the following command:
<source lang="xml">
<install timeout='30' cmd='"%SOFTWARE%\VirtualBox\InstallExtPack.cmd" "%SOFTWARE%\VirtualBox\Oracle_VM_VirtualBox_Extension_Pack-%version%.vbox-extpack"' />
</source>
and a cmd script which sends the key "y" to the question if one is accepting the extension pack licence agreement. The redirection >NUL is needed - without it, it always failed for me.
<source lang="batch">
@echo off
echo y | "%PROGRAMFILES%\Oracle\VirtualBox\VBoxManage.exe" extpack install --replace "%1" >NUL
</source>
[[category:Silent Installers]]