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 : 2017-10-11 11:03:39
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20171011-110338
  • min_os_version :
  • min_wapt_version :

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

    

manifest

[["WAPT/icon.png", "11f58b062e7574e7a42e879c42c97f053babb03b"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "557e60050809687d56525e6ac46df9c0e02ccae6"], ["NDP462-KB3151800-x86-x64-AllOS-ENU.exe", "a70f856bda33d45ad0a8ad035f73092441715431"], ["setup.py", "e594ccf0d47eddff6cf87b6d4759cd1a858d6305"], ["WAPT/control", "4563202d0de8101baa07fe1663771ae987e02b06"]]