tis-powershell3

3.0-13
Windows Management Framework 3.0 including Powershell 3.0 for Windows Vista and Windows 7
1201 downloads
Download

  Description 

  • package : tis-powershell3
  • version : 3.0-13
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Hubert TOUVET,Jimmy PELÉ
  • description : Windows Management Framework 3.0 including Powershell 3.0 for Windows Vista and Windows 7
  • locale :
  • target_os : windows
  • min_os_version : 6.0
  • max_os_version : 6.2
  • min_wapt_version : 1.5
  • sources : https://store.wapt.fr/store/tis-powershell3
  • installed_size :
  • impacted_process :
  • description_fr : Windows Management Framework 3.0 inclus Powershell 3.0 pour Windows Vista et Windows 7
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Microsoft
  • licence : MIT
  • signature_date : 2020-02-27T21:39:40.291247
  • Homepage : https://docs.microsoft.com/en-us/powershell/
  • Depends :

  Setup.py 

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

uninstallkey = []

#https://docs.microsoft.com/powershell/scripting/install/installing-windows-powershell
#https://www.microsoft.com/download/details.aspx?id=34595

# Declaring specific app values (TO CHANGE)
bin_name_w7_x64 = 'Windows6.1-KB2506143-x64.msu'
bin_name_w7_x86 = 'Windows6.1-KB2506143-x86.msu'
bin_name_vista_x64 = 'Windows6.0-KB2506146-x86.msu'
bin_name_vista_x86 = 'Windows6.0-KB2506146-x86.msu'

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,'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\\RebootRequired') or \
        reg_key_exists(HKEY_LOCAL_MACHINE,'SOFTWARE\\Microsoft\Windows\\CurrentVersion\\Component Based Servicing\\RebootPending') or \
        reg_key_exists(HKEY_LOCAL_MACHINE,'SOFTWARE\\Microsoft\\Updates\\UpdateExeVolatile'):
        return True
    return False


def install():
    with EnsureWUAUServRunning():
        if windows_version() < Version('6.1'):
            kb = 'KB2506146'
            if not is_kb_installed(kb):
                if iswin64():
                    msu = bin_name_vista_x64
                else:
                    msu = bin_name_vista_x86
                run('wusa.exe "{}" /quiet /norestart'.format(msu),accept_returncodes=[0,3010,2359302],timeout=3600)
                print('reboot needed')
            else:
                print('{} already installed'.format(kb))
        else:
            kb = 'KB2506143'
            if not is_kb_installed(kb):
                if iswin64():
                    msu = bin_name_w7_x64
                else:
                    msu = bin_name_w7_x86
                run('wusa.exe "{}" /quiet /norestart'.format(msu),accept_returncodes=[0,3010,2359302],timeout=3600)
                print('reboot needed')
            else:
                print('{} already installed'.format(kb))

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


def update_package():
    print('Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    url_dl_w7_x64 = ('https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.1-KB2506143-x64.msu')
    url_dl_w7_x86 = ('https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.1-KB2506143-x86.msu')
    url_dl_vista_x64 = ('https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.0-KB2506146-x64.msu')
    url_dl_vista_x86 = ('https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.0-KB2506146-x86.msu')

    # Downloading binaries
    if not isfile(bin_name_w7_x64):
        print('Downloading ' + bin_name_w7_x64)
        wget(url_dl_w7_x64,bin_name_w7_x64,proxies=proxy)
    if not isfile(bin_name_w7_x86):
        print('Downloading ' + bin_name_w7_x86)
        wget(url_dl_w7_x86,bin_name_w7_x86,proxies=proxy)

    if not isfile(bin_name_vista_x64):
        print('Downloading ' + bin_name_vista_x64)
        wget(url_dl_vista_x64,bin_name_vista_x64,proxies=proxy)
    if not isfile(bin_name_vista_x86):
        print('Downloading ' + bin_name_vista_x86)
        wget(url_dl_vista_x86,bin_name_vista_x86,proxies=proxy)

    else:
        print ('This package is already up-to-date')


										

  Changelog 


https://www.microsoft.com/download/details.aspx?id=34595
  manifest.sha256 
[["WAPT/icon.png","89b5c97d53bad78c4769ced0ed03c74955f4f53fe03d3bd29bdae353c3f0ae2f"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["Windows6.0-KB2506146-x86.msu","8af5cd1fb937afdebf0c8401686f1fc1674f8fc8d5d47d7865aa894c66bccd3e"],["Windows6.1-KB2506143-x64.msu","8a8e35fa0e613fcc54644b8336d7dabbe5c6b57a1895e9caac2d0065746d1f8d"],["Windows6.1-KB2506143-x86.msu","2a23cb68bc87675c8ec7c7bfdfbb7f99262b69163bc7db7edc76ac1fb436a16e"],["WAPT/control","f6e7f4770625e97d0cc296dc8b242245a85e0a55f440b66082c16f6367b67042"],["setup.py","332df0192d72b9f434550839eba8f09d21994dde8ebdb7853d69fc88ab830916"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"],["README.md","445d66cb76f9cd2b6379f102f85cf107b0179b5e3b4128e17b22ef07019b058b"],["WAPT/changelog.txt","c74441bfe64700559df4225a46236a1ff047d6551cecab59cd263d3042439880"]]