tis-dotnetfx4.6 4.6.2-7

  • package : tis-dotnetfx4.6
  • version : 4.6.2-7
  • description : dot net FX 4.6.2 Framework CLient. replace 4/4.5/4.5.1/4.5.2/4.6/4.6.1
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 18:58:48

setup.py

from setuphelpers import *
import platform

uninstallkey=[]

def install():
    if windows_version() >= WindowsVersions.Windows10:
        dot_net_release = 394802
    else:
        dot_net_release = 394806
    actual_release = registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Full','Release')
    print("installing Dot Net fx 4.6.2 - Release %s" % dot_net_release)
    if platform.win32_ver()[1] <> 'XP':
        if actual_release < dot_net_release:
            run("NDP462-KB3151800-x86-x64-AllOS-ENU.exe /q /norestart",accept_returncodes=[0,3010])
            installed_release = registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Full','Release')
            if  installed_release < dot_net_release:
                error('Microsoft .NET Framework 4.6.2 not found after install')
            print("After install, restarting your computer is recommended.")
        else:
            print('Already there or superior - Installed release is : %s' % actual_release)
    else:
        print("dotnet fx4.6.2 is not available for Windows XP")

    ## Documentation :
    ## DotNet product version numbering : https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "1aff4a5391de6672932b2ebc601de11c28e04c1ccd71173f2d9bbb525493a58d"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["NDP462-KB3151800-x86-x64-AllOS-ENU.exe", "28886593e3b32f018241a4c0b745e564526dbb3295cb2635944e3a393f4278d4"], ["setup.py", "478dded743b7ccfe7babd45a2d6a1a9ee6e5c01ae475bb15621f835fd4f3a659"], ["WAPT/control", "9ecab1f6721708658cb378a2dd8976da96f139069277b0345cbe258fb348677d"]]