Difference between revisions of "Sun xVM VirtualBox"
(→VirtualBox 4.3.6) |
|||
Line 4: | Line 4: | ||
== VirtualBox 4.3.6 == | == VirtualBox 4.3.6 == | ||
+ | |||
+ | There's a --silent switch now which seems to work, something like this: | ||
+ | |||
<source lang="xml"> | <source lang="xml"> | ||
<package id="virtualbox" | <package id="virtualbox" | ||
Line 21: | Line 24: | ||
</package> | </package> | ||
− | </source> | + | </source> |
== VirtualBox 4.1.10 == | == VirtualBox 4.1.10 == |
Revision as of 18:25, 14 January 2014
This is a silent installer for Sun xVM VirtualBox. You can get it from VirtualBox Homepage.
See http://www.virtualbox.org/manual/ch02.html#idp50342400 for installation advice.
VirtualBox 4.3.6
There's a --silent switch now which seems to work, something like this:
<package id="virtualbox"
name="Oracle Virtual Box"
revision="%version%"
reboot="false"
priority="0">
<variable name="version" value="4.3.6" />
<variable name="longversion" value="4.3.6-91406" />
<check type="uninstall" condition="exists" path="Oracle VM VirtualBox %version%" />
<install cmd='"%SOFTWARE%\virtualbox\VirtualBox-%longversion%-Win.exe" --silent '></install>
<remove architecture="x86" cmd='MsiExec.exe /X{F20386D5-EE47-42FF-90CB-203A61787CA2} /qn' />
<remove architecture="x64" cmd='MsiExec.exe /X{B374E6A8-501F-4BC0-BA59-4EE78F06B3B2} /qn' />
</package>
VirtualBox 4.1.10
Using certutil.exe allows you to approve the use of USB devices without manual validation.
<package id="virtualbox"
name="Oracle Virtual Box"
revision="4.1.10"
reboot="false"
priority="1">
<check type="uninstall" condition="exists" path="Oracle VM VirtualBox 4.1.10" />
<install architecture="x86" os="windows.+5\.\d{1}\.\d{4}" cmd='msiexec /i "%SOFTWARE%\virtualbox\virbox4110\VirtualBox-4.1.10-r76836-MultiArch_x86.msi" ADDLOCAL=VBoxApplication,VBoxUSB /qn /norestart /l*v "%systemdrive%\netinst\virtualbox.log" ' ></install>
<install architecture="x86" os="windows.+6\.\d{1}\.\d{4}" cmd='certutil.exe -f -addstore "TrustedPublisher" "%SOFTWARE%\virtualbox\virbox4110\virboxusbcerI386.cer"'/>
<install architecture="x86" os="windows.+6\.\d{1}\.\d{4}" cmd='msiexec /i "%SOFTWARE%\virtualbox\virbox4110\VirtualBox-4.1.10-r76836-MultiArch_x86.msi" ADDLOCAL=VBoxApplication,VBoxUSB /qn /norestart /l*v "%systemdrive%\netinst\virtualbox.log" ' ></install>
<install architecture="x64" os="windows.+6\.\d{1}\.\d{4}" cmd='certutil.exe -f -addstore "TrustedPublisher" "%SOFTWARE%\virtualbox\virbox4110\virboxusbcerX64.cer"'/>
<install architecture="x64" os="windows.+6\.\d{1}\.\d{4}" cmd='msiexec /i "%SOFTWARE%\virtualbox\virbox4110\VirtualBox-4.1.10-r76836-MultiArch_amd64.msi" ADDLOCAL=VBoxApplication,VBoxUSB /qn /norestart /l*v "%systemdrive%\netinst\virtualbox.log" ' ></install>
<remove architecture="x86" os="windows.+6\.\d{1}\.\d{4}" cmd='MsiExec.exe /X{F20386D5-EE47-42FF-90CB-203A61787CA2} /qn' />
<remove architecture="x86" os="windows.+5\.\d{1}\.\d{4}" cmd='MsiExec.exe /X{F20386D5-EE47-42FF-90CB-203A61787CA2} /qn' />
<remove architecture="x64" os="windows.+6\.\d{1}\.\d{4}" cmd='MsiExec.exe /X{B374E6A8-501F-4BC0-BA59-4EE78F06B3B2} /qn' />
</package>
VirtualBox 2.1.4
The user will have to manually validate the installation of new drivers (until someone find how to fix it).
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="virtualbox"
name="Virtualbox"
revision="0214"
reboot="false"
priority="10">
<check type="uninstall" condition="exists" path="Sun xVM VirtualBox" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\Sun xVM VirtualBox\VirtualBox.exe" value="3025424" />
<install cmd='msiexec /i "%SOFTWARE%\virtualbox\VirtualBox-2.1.4-42893-Win_x86.msi" /qn /norestart'>
<exit code="1618" />
<exit code="0" />
</install>
<upgrade cmd='msiexec /i "%SOFTWARE%\virtualbox\VirtualBox-2.1.4-42893-Win_x86.msi" /qn /norestart'>
<exit code="1618" />
<exit code="0" />
</upgrade>
</package>
</packages>
Needed : a way to silently install the network driver that is provided by this package. Any help appreciated. As for now, it is still asked to the user to acknowledge the installation of the network device driver.
See here OpenVPN. --Blank3 09:18, 26 February 2009 (CET)
To silently install a driver, it must come from a trusted source, i.e. we have to install the oracle certificate first. Details are to be found at http://www.win-lite.de/wbb/board195-windows-7/board196-win7-tools-zur-image-bearbeitung/3987-howto-programme-ohne-treibernachfrage-in-windows7-silent-installieren/
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="virtualbox" name="Virtualbox" reboot="false" priority="10">
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Oracle\VirtualBox\VirtualBox.exe" value="4.1.8.0"/>
<install cmd="certutil.exe -f -addstore "TrustedPublisher" %SOFTWARE%\virtualBox\oracle.p7b"/>
<install cmd="%SOFTWARE%\virtualBox\virtualBox-4.1.8-75467-win.exe -s"/>
</package>
</packages>