tis-virtualbox 5.1.26-19

  • package : tis-virtualbox
  • version : 5.1.26-19
  • description : Oracle VM VirtualBox with Extension Pack. Problemes sous XP. The VirtualBox binaries are released under the terms of the GPL version 2. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL). See https://www.virtualbox.org/wiki/Downloads
  • maintainer : Hubert TOUVET, Amelie LE JEUNE
  • date : 2017-09-13 10:14:55
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170913-101452
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

version = '5.1.26'

exe_filename = 'VirtualBox-5.1.26-117224-Win.exe'
extpack_filename = 'Oracle_VM_VirtualBox_Extension_Pack-5.1.26-117224.vbox-extpack'

key64='{11A88BD5-F059-4743-81D9-1432AC9C3D4E}'
key86='{9643919D-5625-48CD-A537-8D1CC170614A}'

def install():
    vboxmanage = makepath(programfiles,'Oracle','VirtualBox','VBoxManage.exe')
    if isfile(vboxmanage):
        running_vms = run('"%(vboxmanage)s" list runningvms' % locals()).splitlines()

        for vm in running_vms:
            (vm_name,vm_id) = vm.rsplit(' ',1)
            vm_name = vm_name[1:-1]

            print("Shutting down the machine %s" % vm_name)
            run('"%(vboxmanage)s" controlvm %(vm_id)s savestate' % locals())

    print('installing tis-virtualbox')

    if iswin64():
        key = key64
    else:
        key = key86

    install_exe_if_needed(exe_filename,silentflags='--silent --msiparams REBOOT=ReallySuppress',key=key,min_version=version,killbefore=['virtualbox.exe'])

    extpack = makepath(programfiles,'Oracle','VirtualBox',extpack_filename)
    filecopyto(extpack_filename,extpack)

    print('Installation extension pack')
    try:
        run('echo y | "%(vboxmanage)s" extpack install --replace "%(extpack)s"' % locals())
    except:
        run('"%(vboxmanage)s" extpack cleanup' % locals())
        run('echo y | "%(vboxmanage)s" extpack install --replace "%(extpack)s"' % locals())


def uninstall():
    print('Removing Virtualbox')
    remove_tree(makepath(programfiles,'Oracle','VirtualBox'))


def update_package():
    if not isfile(exe_filename):
        wget('http://download.virtualbox.org/virtualbox/%s/%s' %(version,exe_filename) ,exe_filename)
    if not isfile(extpack_filename):
        wget('http://download.virtualbox.org/virtualbox/%s/%s' %(version,extpack_filename) ,extpack_filename)

    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-%s'%(version,int(control.version.split('-',1)[1]))
    control.save_control_to_wapt('.')

    # removes old exe
    exes = glob.glob('*.exe')+glob.glob('*.vbox-extpack')
    for fn in exes:
        if fn not in (exe_filename, extpack_filename):
            remove_file(fn)

if __name__ == '__main__':
    update_package()
    

manifest

[["WAPT/icon.png", "84c76888d669093982a04a1d703450ecb811ea4c"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "f70a3c5d751c934d05cb41122ef7a179557118ed"], ["Oracle_VM_VirtualBox_Extension_Pack-5.1.26-117224.vbox-extpack", "4de07d6856fc26efd1a03a3b99340434daa8adda"], ["VirtualBox-5.1.26-117224-Win.exe", "97038cd4121756174a2273a95be3205491382fc2"], ["setup.py", "c66ac74f84e1c013c732a99ffc3d86ade21b7925"], ["WAPT/control", "c5ca887ea5ed1d7c7c379de9ba25299335559b6b"], ["WAPT/changelog.txt", "0dc73d16c740470523b7011a84cb98d503330f6a"]]