Détails du package smp-kb4019990_4019990-2_all.wapt
retour Revenir à la liste des packages

smp-kb4019990

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-kb4019990
version           : 4019990-2
architecture      : all
section           : base
priority          : optional
maintainer        : Lesfourmisduweb
description       : Update for the d3dcompiler_47.dll component (for dotnetfx4.7)
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : Q1YWcAse+IBNdjOvxJk1zzVvnRQqylAihfORQosttCJoQjgal8ydKuT5dVh9ccY6zCGoyRupsGjd9jorNZq/KY5e4D86oLbQPnWp0bPvxMBIuZd7oGLTNa800z3SmErEoh50NIiVShJPLGqXohGY+3o4x46bq4uGwKdkulk0eOFfHXOH05SXxCj/9fLU4wfLispbswkkygMDJOYYzElHTKS8fJJkhc9Hvf2ad1p/P5nc7ViCtf7vwE34xkrf6ELAnp31tLTrOzYO2QUn32c1YJJQev7Dp6bzgWIgTnxZeZQXQyYDxQzIJanlXsxbEY5Fnh0WPzfYbQ/WJZNTEmdVDA==
signature_date    : 20180120-124051
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

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

uninstallkey = []

def is_kb_installed(hotfixid):
    installed_update = installed_windows_updates()
    if [kb for kb in installed_update if kb['HotFixID' ].upper() == hotfixid.upper()]:
        return True
    return False

def waiting_for_reboot():
    # Query WUAU from the registry
    if reg_key_exists(HKEY_LOCAL_MACHINE,r"SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired") or \
        reg_key_exists(HKEY_LOCAL_MACHINE,r"SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending") or \
        reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Updates\UpdateExeVolatile'):
        return True
    return False

def install():
    if not iswin64():
        kb_files = [
            'Windows6.1-KB4019990-x86.msu',
            ]
    else:
        kb_files = [
            'Windows6.1-KB4019990-x64.msu',
            ]
    for kb_file in kb_files:
        kb_guess = re.findall(r'^.*-(KB.*)-',kb_file)
        if not kb_guess or not is_kb_installed(kb_guess[0]):
            print('Installing {}'.format(kb_file))
            run('wusa.exe "{}" /quiet /norestart'.format(kb_file),accept_returncodes=[0,3010,2359302,-2145124329],timeout=3600)
        else:
            print('{} already installed'.format(kb_file))

    if waiting_for_reboot():
        print('A reboot is needed !')