Difference between revisions of "Sun xVM VirtualBox"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(VirtualBox)
Line 1: Line 1:
 
This is a silent installer for Sun xVM VirtualBox. You can get it from [http://www.virtualbox.org VirtualBox Homepage].
 
This is a silent installer for Sun xVM VirtualBox. You can get it from [http://www.virtualbox.org VirtualBox Homepage].
 +
 +
== 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).
 
The user will have to manually validate the installation of new drivers (until someone find how to fix it).

Revision as of 09:38, 22 May 2012

This is a silent installer for Sun xVM VirtualBox. You can get it from VirtualBox Homepage.

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 &quot;TrustedPublisher&quot; %SOFTWARE%\virtualBox\oracle.p7b"/>
  <install cmd="%SOFTWARE%\virtualBox\virtualBox-4.1.8-75467-win.exe -s"/>
 </package>
</packages>